684 Redundant Connection
Techniques Used
Union Find
Graph
Approach
This problem can be simplified as: you are required to find the first edge which when processed by our union-find algorithm will create a cycle in the graph. Just return that edge.
Time Complexity
Time C...
raahulsaxena.hashnode.dev2 min read