Sorted
Current min
Comparing
Unsorted

Controls

Time: O(n²) always | Space: O(1) | Not stable

Steps

0 steps

Press Run to trace the algorithm one step at a time.