Graphs: BFS, DFS and Topological Sort
Model problems as graphs, choose BFS, DFS or topological sort, and avoid the visited-set and disconnected-component bugs.
About 9 min. Pro opens the whole course. Current prices are on the pricing page.
Model problems as graphs, choose BFS, DFS or topological sort, and avoid the visited-set and disconnected-component bugs.
About 9 min. Pro opens the whole course. Current prices are on the pricing page.