Blog
Tutorials, guides, and insights to help you become a better developer.
Multi-source BFS is single-source BFS with all starting points seeded at once. Master this pattern and you can solve Rotting Oranges, Walls and Gates, and Word Ladder in one mental model.
AdminAugust 2, 20268 min read
Grid problems are graph problems in disguise. Learn the DFS/BFS traversal pattern that unlocks Number of Islands, Clone Graph, and Pacific Atlantic Water Flow.
AdminAugust 2, 20267 min read
One BFS template, three interview problems. Level-order, zigzag traversal, and right side view all reduce to the same queue loop with a small variation each time.
AdminAugust 2, 20265 min read