Given an undirected star graph's edges, identify the central node connected to all others.
Constraints
Example
>>> find_center([[1,2],[2,3],[4,2]]) 2 >>> find_center([[1,2],[5,1],[1,3],[1,4]]) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints