Find the extra edge that creates a cycle in an undirected graph.
Constraints
Example
```python >>> find_redundant_connection([[1,2],[1,3],[2,3]]) [2, 3] >>> find_redundant_connection([[1,2],[2,3],[3,4],[1,4],[1,5]]) [1, 4] >>> find_redundant_connection([[1,2],[2,3],[3,1]]) [3, 1] ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints