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 25 of 29
Question 19 of 20
Step 25 of 29
Step 26 of 29
Step 27 of 29
Question 19 of 20
Question 19 of 20
Question 19 of 20
Not this time.
You guessed: The way runs out, so 50 is not in the tree.
What the run did:
Here is 50.
Question 20 of 20
Question 20 of 20
Right.
You guessed: 50 has nothing hanging from it, so it simply comes out.
What the run did:
50 has nothing hanging from it, so it can simply come out.
That is every question on this run: 1 of 20 right.
Question 20 of 20
Not this time.
You guessed: 50 has one child, which takes its place.
What the run did:
50 has nothing hanging from it, so it can simply come out.
That is every question on this run: 0 of 20 right.
Question 20 of 20
Not this time.
You guessed: 50 has two children, so the smallest number to its right takes its place.
What the run did:
50 has nothing hanging from it, so it can simply come out.
That is every question on this run: 0 of 20 right.