AlgoViz

Tree DFS

easy 18 min

Depth-first search walks a tree by going as deep as possible down one branch before backing up to try the next.