How to clone a graph without copying a node twice
5 min read A deep copy of a graph only works if you record each clone the moment you make it, before you ever touch its neighbors. Read article
5 min read A deep copy of a graph only works if you record each clone the moment you make it, before you ever touch its neighbors. Read article
7 min read The grid-counting question turns up everywhere from Google to Citadel, and the part that gets scored is the follow-up, not the first solution. 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 Number of Islands (LeetCode 200) is the most common entry-level graph problem in technical interviews. It appears at Google, Amazon, 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
What's missing, wrong, or worth adding? One line helps.
Sent — thank you. We read every one.