Lesson 70 of 73 1 min

Graphs: Curated Practice Problems

A hand-picked list of 10 essential LeetCode problems to master BFS, DFS, and Topological Sort.

Key Patterns to Master

  1. Flood Fill: For grid traversal.
  2. Topological Sort: For dependency and ordering.
  3. Shortest Path: Using BFS (unweighted) or Dijkstra (weighted).
  4. Union Find: For connectivity (advanced).

Hand-Picked Problems

Problem Difficulty Key Pattern
Number of Islands Medium Grid DFS
Clone Graph Medium BFS/DFS + Map
Course Schedule Medium Kahn's Algorithm
Pacific Atlantic Water Flow Medium Multi-source DFS
Rotting Oranges Medium Multi-source BFS
Word Ladder Hard Shortest Path BFS
Network Delay Time Medium Dijkstra
Cheapest Flights Within K Stops Medium Bellman-Ford
Redundant Connection Medium Union Find
Alien Dictionary Hard Advanced TopoSort

Interview Tip

Always mention if the graph is Directed or Undirected, and if it can have Cycles.

Want to track your progress?

Sign in to save your progress, track completed lessons, and pick up where you left off.