Practice›LeetCode›LeetCode 06xxLeetCode 684: Redundant ConnectionFind the extra edge in an undirected graph that creates a cycle using Union-Find.
Practice›LeetCode›LeetCode 03xxLeetCode 305: Number of Islands IIA clear explanation of Number of Islands II using Union-Find to dynamically merge connected land cells.