When Depth-First Search Gets It Wrong: Shortest Path Problem Analysis
While working on a recent graph traversal problem, I made an assumption that would prove costly: that Depth-First Search (DFS) and Breadth-First Search (BFS) are interchangeable algorithms. This misconception led me down a rabbit hole of debugging be...
huanganni.hashnode.dev9 min read