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 13 of 21
Question 7 of 9
Step 13 of 21
Step 14 of 21
Step 16 of 21
Step 17 of 21
Step 18 of 21
Question 7 of 9
Question 7 of 9
Not this time.
You guessed: 30 has nothing hanging from it, so it simply comes out.
What the run did:
30 has one child, 12, which will take its place.
Question 7 of 9
Right.
You guessed: 30 has one child, which takes its place.
What the run did:
30 has one child, 12, which will take its place.
Question 7 of 9
Not this time.
You guessed: 30 has two children, so the smallest number to its right takes its place.
What the run did:
30 has one child, 12, which will take its place.
Question 8 of 9
Question 8 of 9
Question 8 of 9
Not this time.
You guessed: The way runs out, so 12 is not in the tree.
What the run did:
Here is 12.
Question 9 of 9
Question 9 of 9
Right.
You guessed: 12 has nothing hanging from it, so it simply comes out.
What the run did:
12 has nothing hanging from it, so it can simply come out.
That is every question on this run: 1 of 9 right.
Question 9 of 9
Not this time.
You guessed: 12 has one child, which takes its place.
What the run did:
12 has nothing hanging from it, so it can simply come out.
That is every question on this run: 0 of 9 right.
Question 9 of 9
Not this time.
You guessed: 12 has two children, so the smallest number to its right takes its place.
What the run did:
12 has nothing hanging from it, so it can simply come out.
That is every question on this run: 0 of 9 right.