Graph Topics

Master essential graph problems and patterns frequently asked in interviews.

Progress: 0 / 5 Topics

WONDERING, HOW DOES IT COVER PATTERNS?
These problems cover the most important graph patterns for interviews:

BFS & DFS TraversalsFundamental traversal patterns for graphs, trees, and grids.
Connected Components / Island CountingDFS/BFS flood fill pattern to explore separate components.
Topological SortingDFS post-order or queue-based ordering of DAG nodes.
Shortest Path (Dijkstra / BFS)Single-source shortest path using BFS for unweighted or Dijkstra for weighted graphs.
Minimum Spanning Tree (MST)Greedy algorithms (Prim/Kruskal) to connect all nodes with minimum cost.

Together, they ensure you understand traversals, component counting, DAG ordering, shortest path finding, and MST construction in graph problems.