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 19 of 28
Question 13 of 16
Step 19 of 28
Step 20 of 28
Step 21 of 28
Step 22 of 28
Step 23 of 28
Step 24 of 28
Question 13 of 16
Question 13 of 16
Right.
You guessed: Hang 50 to the left of 61.
What the run did:
The way runs out, so hang 50 to the left of 61.
Question 13 of 16
Not this time.
You guessed: Hang 50 to the right of 61.
What the run did:
The way runs out, so hang 50 to the left of 61.
Question 14 of 16
Question 14 of 16
Right.
You guessed: 23 is smaller than 42, so go left.
What the run did:
23 is smaller than 42, so go left.
Question 14 of 16
Not this time.
You guessed: 23 is bigger than 42, so go right.
What the run did:
23 is smaller than 42, so go left.
Question 15 of 16
Question 15 of 16
Question 15 of 16
Not this time.
You guessed: The way runs out, so 23 is not in the tree.
What the run did:
Here is 23.
Question 16 of 16
Question 16 of 16
Not this time.
You guessed: 23 has nothing hanging from it, so it simply comes out.
What the run did:
23 has two children, so the smallest number to its right will take its place.
That is every question on this run: 0 of 16 right.
Question 16 of 16
Not this time.
You guessed: 23 has one child, which takes its place.
What the run did:
23 has two children, so the smallest number to its right will take its place.
That is every question on this run: 0 of 16 right.
Question 16 of 16
Right.
You guessed: 23 has two children, so the smallest number to its right takes its place.
What the run did:
23 has two children, so the smallest number to its right will take its place.
That is every question on this run: 1 of 16 right.