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
Topological sort is how you order things with dependencies. Learn the DFS three-state and Kahn's BFS approaches to ace Course Schedule, Course Schedule II, and Alien Dictionary.
AdminAugust 2, 20268 min read