Topological Sort Interview Patterns
6 min read What is Topological Sort? A topological ordering of a directed acyclic graph (DAG) is a linear ordering of vertices such […] Read article
6 min read What is Topological Sort? A topological ordering of a directed acyclic graph (DAG) is a linear ordering of vertices such […] Read article
9 min read Graph Traversal Interview Patterns Graph problems appear in nearly every senior engineering interview. The key is recognizing which traversal fits Read article
11 min read Shortest path problems appear in nearly every graph interview. The key skill is recognizing which algorithm applies to the given Read article
4 min read Bellman-Ford is the shortest-path algorithm you reach for when Dijkstra fails — specifically when graphs contain negative-weight edges or you Read article
3 min read Minimum Spanning Tree problems test whether you can connect all nodes in a weighted graph at minimum total cost — Read article
4 min read Word Ladder (LeetCode 127) is the canonical example of BFS on an implicit graph — the nodes are words, the Read article
2 min read Clone a Graph (LeetCode 133) is a foundational graph problem that tests your understanding of deep copy vs shallow copy, Read article
4 min read Cycle detection is asked in interviews at Google, Meta, Amazon, and anywhere that tests graphs. The classic application is deadlock Read article
4 min read Number of Islands (LeetCode 200) is the most common entry-level graph problem in technical interviews. It appears at Google, Amazon, Read article
3 min read Topological sort is the graph algorithm you need for scheduling problems: course prerequisites, build systems, task dependencies, and package managers. Read article
5 min read BFS and DFS are the two foundational graph traversal algorithms. Every other graph algorithm — Dijkstra, Bellman-Ford, topological sort, cycle Read article