guess the next step: Binary search tree
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 5 of 21
Question 1 of 9
Step 5 of 21
Step 6 of 21
Step 7 of 21
Step 8 of 21
Step 9 of 21
Step 10 of 21
Step 11 of 21
Step 12 of 21
Step 13 of 21
Question 1 of 9
Question 1 of 9
Right.
You guessed: 12 is smaller than 30, so go left.
What the run did:
12 is smaller than 30, so go left.
Question 1 of 9
Not this time.
You guessed: 12 is bigger than 30, so go right.
What the run did:
12 is smaller than 30, so go left.
Question 2 of 9
Question 2 of 9
Right.
You guessed: Hang 12 to the left of 30.
What the run did:
The way runs out, so hang 12 to the left of 30.
Question 2 of 9
Not this time.
You guessed: Hang 12 to the right of 30.
What the run did:
The way runs out, so hang 12 to the left of 30.
Question 3 of 9
Question 3 of 9
Right.
You guessed: 25 is smaller than 30, so go left.
What the run did:
25 is smaller than 30, so go left.
Question 3 of 9
Not this time.
You guessed: 25 is bigger than 30, so go right.
What the run did:
25 is smaller than 30, so go left.
Question 4 of 9
Question 4 of 9
Not this time.
You guessed: 25 is smaller than 12, so go left.
What the run did:
25 is bigger than 12, so go right.
Question 4 of 9
Right.
You guessed: 25 is bigger than 12, so go right.
What the run did:
25 is bigger than 12, so go right.
Question 5 of 9
Question 5 of 9
Not this time.
You guessed: Here is 25.
What the run did:
The way runs out without meeting 25, so it is not in the tree.
Question 5 of 9
Right.
You guessed: The way runs out, so 25 is not in the tree.
What the run did:
The way runs out without meeting 25, so it is not in the tree.
Question 6 of 9
Question 6 of 9
Question 6 of 9
Not this time.
You guessed: The way runs out, so 30 is not in the tree.
What the run did:
Here is 30.