Redundant Connection
Problem overview from a real Apple interview:
Given an n-node undirected graph, find the last input edge to remove to eliminate the cycle and restore the valid tree structure. Asked at Apple.
Check more interview questions and experiences about Apple
