Shortest Path in Weighted Graph: Bellman-Ford Algorithm
Bellman-Ford is the shortest-path algorithm you reach for when Dijkstra fails — specifically when graphs contain negative-weight edges or you […]
Bellman-Ford is the shortest-path algorithm you reach for when Dijkstra fails — specifically when graphs contain negative-weight edges or you […]
Minimum Spanning Tree problems test whether you can connect all nodes in a weighted graph at minimum total cost —
Word Ladder (LeetCode 127) is the canonical example of BFS on an implicit graph — the nodes are words, the
Clone a Graph (LeetCode 133) is a foundational graph problem that tests your understanding of deep copy vs shallow copy,
Cycle detection is asked in interviews at Google, Meta, Amazon, and anywhere that tests graphs. The classic application is deadlock
Number of Islands (LeetCode 200) is the most common entry-level graph problem in technical interviews. It appears at Google, Amazon,
Topological sort is the graph algorithm you need for scheduling problems: course prerequisites, build systems, task dependencies, and package managers.
BFS and DFS are the two foundational graph traversal algorithms. Every other graph algorithm — Dijkstra, Bellman-Ford, topological sort, cycle