guess the next step: 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 42 of 52
Question 31 of 35
Step 42 of 52
Step 43 of 52
Step 44 of 52
Step 45 of 52
Step 47 of 52
Step 48 of 52
Step 49 of 52
Question 31 of 35
Question 31 of 35
Not this time.
You guessed: 31 is smaller than the pivot 42, so it swaps onto the small side.
What the run did:
31 is smaller than the pivot 42, and it already stands at the end of the small side.
Question 31 of 35
Right.
You guessed: 31 is smaller than the pivot 42, and already stands at the end of the small side.
What the run did:
31 is smaller than the pivot 42, and it already stands at the end of the small side.
Question 31 of 35
Not this time.
You guessed: 31 is not smaller than the pivot 42, so it stays on the big side.
What the run did:
31 is smaller than the pivot 42, and it already stands at the end of the small side.
Question 32 of 35
Question 32 of 35
Not this time.
You guessed: 23 is smaller than the pivot 42, so it swaps onto the small side.
What the run did:
23 is smaller than the pivot 42, and it already stands at the end of the small side.
Question 32 of 35
Right.
You guessed: 23 is smaller than the pivot 42, and already stands at the end of the small side.
What the run did:
23 is smaller than the pivot 42, and it already stands at the end of the small side.
Question 32 of 35
Not this time.
You guessed: 23 is not smaller than the pivot 42, so it stays on the big side.
What the run did:
23 is smaller than the pivot 42, and it already stands at the end of the small side.
Question 33 of 35
Question 33 of 35
Not this time.
You guessed: The pivot swaps in just after the small side.
What the run did:
The pivot 42 already stands just after the small side, so it stays there for good.
Question 33 of 35
Right.
You guessed: The pivot already stands just after the small side.
What the run did:
The pivot 42 already stands just after the small side, so it stays there for good.
Question 34 of 35
Question 34 of 35
Not this time.
You guessed: 31 is smaller than the pivot 23, so it swaps onto the small side.
What the run did:
31 is not smaller than the pivot 23, so it stays on the big side.
Question 34 of 35
Not this time.
You guessed: 31 is smaller than the pivot 23, and already stands at the end of the small side.
What the run did:
31 is not smaller than the pivot 23, so it stays on the big side.
Question 34 of 35
Right.
You guessed: 31 is not smaller than the pivot 23, so it stays on the big side.
What the run did:
31 is not smaller than the pivot 23, so it stays on the big side.
Question 35 of 35
Question 35 of 35
Right.
You guessed: The pivot swaps in just after the small side.
What the run did:
Swap the pivot 23 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 35 right.
Question 35 of 35
Not this time.
You guessed: The pivot already stands just after the small side.
What the run did:
Swap the pivot 23 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 35 right.