leaps.ggTRACK YOUR MASTERY →
PROBLEMS/GRAPHS/UNION-FIND

Union-Find Problems

44 Union-Find problems on LeetCode, a Graphs interview pattern, ranked by importance (how often it comes up in real interviews). Difficulty (ELO) and importance shown per problem.

#PROBLEMDIFFELOIMPPATTERNS
1Graph Valid TreePREMIUMEasy139887
DFS Connected Components · BFS Shortest Path (Unweighted)
2Accounts MergeMedium163883
DFS Connected Components · Frequency Counting / Hash Map Lookup
3Redundant ConnectionMedium142082
DFS Connected Components
4Smallest String With SwapsHard185582
Sorting + Comparison · DFS Connected Components
5Number of Islands IIPREMIUMHard184278
Frequency Counting / Hash Map Lookup
+ 39 more Union-Find problems, see all in the explorer →
MORE GRAPHS PATTERNS
BFS Shortest Path (Unweighted)Multi-Source BFSDFS Connected ComponentsDFS Path FindingUnion-FindTopological Sort
// your mastery
Bronze tier crystalSilver tier crystalGold tier crystalPlatinum tier crystalDiamond tier crystal
What's your Union-Find tier?

leaps.gg syncs your LeetCode history, scores your Union-Find mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.

GET MY MASTERY MAP →