PRACTICE BY PATTERN
Learn the pattern, unlock the problem.
Stop grinding 2,000 random problems. Master the core patterns that everything else is built on.
Sliding Window
Graphs
BFS (Shortest Path)
Traverse unweighted graph nodes layer-by-layer to calculate shortest path distances.
Progress0 / 162 done
162 questions
DFS (Connectivity)
Traverse graph paths recursively to check path existence or solve grid puzzles.
Progress0 / 162 done
162 questions
Topological Sort (Kahn's / DFS)
Sort vertices linearly in a Directed Acyclic Graph (DAG) respecting node dependencies.
Progress0 / 162 done
162 questions
Union-Find (Disjoint Set Union)
Efficiently group connected components and check path equivalence in near-constant time.
Progress0 / 212 done
212 questions
Dijkstra's Algorithm
Calculate shortest path distances on weighted graphs with non-negative edge costs using a min-heap.
Progress0 / 162 done
162 questions