VISUALGO//SORT
insertion sort · sorting trace console · O(n²)
● INSERTING ● SHIFTING ● PLACED ● SORTED
Goal:Rearrange all elements in ascending order using insertion sort.
8
1
6
4
5
3
2
7
ELEMENTS
READOUT
step0 / 30
comparisons0
swaps0
statusIDLE