← CS_basics
Visualizer
/
Selection Sort
🌙
Selection Sort
Find the minimum element and swap it to the front each pass.
Sorted
Current min
Comparing
Unsorted
Controls
Array size:
20
Speed
Run
Reset
Time: O(n²) always | Space: O(1) | Not stable
Steps