Sorted Output
Comparisons
0
Swaps
0
Step-by-step reasoning
Trace each adjacent comparison and swap event.
- Run the algorithm to populate steps.
Sorting Lab
Watch adjacent comparisons float the largest value to the top through repeated passes.
0
0
Trace each adjacent comparison and swap event.