Skip to content

BFS & DFS

BFS on a grid

From the BFS & DFS lesson: Explore ripple by ripple (BFS) or path by path (DFS).

Step with → or Next. When a question pops up, make your guess. Switch to “Try your own” to run it on your input.

Getting the demo ready…

More from BFS & DFS