Depth-first search walks a tree by going as deep as possible down one branch before backing up to try the next.
The overview and visualiser are free on every topic. Unlock solutions, code, interview kits, practice and quizzes across every stream.
Launch offer: 30% off your first payment