guess the next step: Randomised quick sort
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 39 of 43
Question 25 of 25
Step 39 of 43
Step 40 of 43
Question 25 of 25
Question 25 of 25
Right.
You guessed: The pivot swaps in just after the small side.
What the run did:
Swap the pivot 31 in just after the small side. Nothing to its left is bigger and nothing to its right is smaller, so it stays there for good.
That is every question on this run: 1 of 25 right.
Question 25 of 25
Not this time.
You guessed: The pivot already stands just after the small side.
What the run did:
Swap the pivot 31 in just after the small side. Nothing to its left is bigger and nothing to its right is smaller, so it stays there for good.
That is every question on this run: 0 of 25 right.