Codele / Algorithms

Depth-first search

In a maze you walk down one path as far as it goes. At a dead end you back up to the last choice and try the next path. Depth-first search explores a map like that.

Loading the playable lesson…