Skip to content

guess the next step: Depth-first search

Before each step plays, guess what it does. The page then shows the step as the run takes it and says why, the same sentence the watch page says there.

Step 1 of 6

A1BA
Start at A. It is the first place reached, so write 1 there and put it on the stack.

Question 1 of 4

What happens next?

Your guess