Report seen similar question in interview
Accepted
1.7k/3.1k
Acceptance Rate54.0%
Python3
Test Cases
Input
n =
edges =
Output
Expected