guess the next step: Cocktail shaker 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 1 of 66
Question 1 of 35
Step 1 of 66
Step 2 of 66
Step 3 of 66
Step 4 of 66
Step 5 of 66
Step 6 of 66
Step 7 of 66
Step 8 of 66
Step 9 of 66
Step 10 of 66
Step 11 of 66
Step 12 of 66
Question 1 of 35
Question 1 of 35
Right.
You guessed: 56 is bigger than 49, so they swap.
What the run did:
56 is bigger than 49, so they are the wrong way round.
Question 1 of 35
Not this time.
You guessed: 56 is not bigger than 49, so they stay.
What the run did:
56 is bigger than 49, so they are the wrong way round.
Question 2 of 35
Question 2 of 35
Right.
You guessed: 56 is bigger than 42, so they swap.
What the run did:
56 is bigger than 42, so they are the wrong way round.
Question 2 of 35
Not this time.
You guessed: 56 is not bigger than 42, so they stay.
What the run did:
56 is bigger than 42, so they are the wrong way round.
Question 3 of 35
Question 3 of 35
Right.
You guessed: 56 is bigger than 31, so they swap.
What the run did:
56 is bigger than 31, so they are the wrong way round.
Question 3 of 35
Not this time.
You guessed: 56 is not bigger than 31, so they stay.
What the run did:
56 is bigger than 31, so they are the wrong way round.
Question 4 of 35
Question 4 of 35
Right.
You guessed: 56 is bigger than 23, so they swap.
What the run did:
56 is bigger than 23, so they are the wrong way round.
Question 4 of 35
Not this time.
You guessed: 56 is not bigger than 23, so they stay.
What the run did:
56 is bigger than 23, so they are the wrong way round.
Question 5 of 35
Question 5 of 35
Right.
You guessed: 56 is bigger than 18, so they swap.
What the run did:
56 is bigger than 18, so they are the wrong way round.
Question 5 of 35
Not this time.
You guessed: 56 is not bigger than 18, so they stay.
What the run did:
56 is bigger than 18, so they are the wrong way round.
Question 6 of 35
Question 6 of 35
Right.
You guessed: 56 is bigger than 12, so they swap.
What the run did:
56 is bigger than 12, so they are the wrong way round.
Question 6 of 35
Not this time.
You guessed: 56 is not bigger than 12, so they stay.
What the run did:
56 is bigger than 12, so they are the wrong way round.