Bubble Sort Interactive Activity
Compare neighbouring values, decide whether to swap them, and complete each pass until the list is sorted.
Time
0s
Pass
0
Comparison
0
Penalty
0s
How it works
In bubble sort, neighbouring values are compared from left to right. If the left value is larger than the right value, they are swapped. At the end of each pass, decide whether another pass is needed. The activity ends automatically when the numbers are sorted.
Every incorrect answer adds a 5 second penalty to your time.