leaps.ggTRACK YOUR MASTERY →
PROBLEMS/GRAPHS/DFS CONNECTED COMPONENTS

DFS Connected Components Problems

58 DFS Connected Components 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
1Number of IslandsEasy132393
BFS Shortest Path (Unweighted) · Union-Find
2Number of Connected Components in an Undirected GraphPREMIUMEasy130388
Union-Find
3Max Area of IslandEasy128085
Matrix Traversal (Diagonal, Valid Sudoku, etc)
4Number of ProvincesEasy128185
Union-Find · BFS Shortest Path (Unweighted)
5Pacific Atlantic Water FlowMedium157385
Multi-Source BFS · Matrix Traversal (Diagonal, Valid Sudoku, etc)
+ 53 more DFS Connected Components 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 DFS Connected Components tier?

leaps.gg syncs your LeetCode history, scores your DFS Connected Components mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.

GET MY MASTERY MAP →