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