VISUALGO
//
Problems
Playground
Learn
/
Playground
Sorting
Selection Sort
VISUALGO
//
SORT
selection sort · sorting trace console · O(n²)
●
MIN
●
COMPARING
●
SWAPPED
●
SORTED
Goal:
Rearrange all elements in
ascending order
using selection sort.
1
4
2
3
8
5
7
6
SPEED — 20
RUN
ELEMENTS
SET
NEW SHUFFLE
READOUT
step
0 / 32
comparisons
0
swaps
0
status
IDLE