There are n teams numbered from n
You are given a edges of length m, where each edges[i] = [u, v] represents a directed edge indicating that team u is stronger than team v. A team a is considered a champion if there is no team b that is stronger than team a.
Return the team that is the champion if there is a unique champion. If there is no unique champion, return
Constraints:
n
m edges.length
m n n
edges[i].length
edges[i][j] n
edges[i][0] edges[i][1]
The input is generated such that if team a is stronger than team b, team b is not stronger than team a.
The input is generated such that if team a is stronger than team b and team b is stronger than team c, then team a is stronger than team c.
There are n teams numbered from n
You are given a edges of length m, where each edges[i] = [u, v] represents a directed edge indicating that team u is stronger than team v. A team a is considered a champion if there is no team b that is stronger than team a.
Return the team that is the champion if there is a unique champion. If there is no unique champion, return
Constraints:
n
m edges.length
m n n
edges[i].length
edges[i][j] n
edges[i][0] edges[i][1]
The input is generated such that if team a is stronger than team b, team b is not stronger than team a.
The input is generated such that if team a is stronger than team b and team b is stronger than team c, then team a is stronger than team c.