Insertion sort
Sort the way you sort a hand of cards. Take each number in turn and move every bigger number before it one place right, then put it in the gap. The part on the left is always in order.
- comparisons
- 0
- moves
- 0
step 1 of 1
Examples
Sort the way you sort a hand of cards. Take each number in turn and move every bigger number before it one place right, then put it in the gap. The part on the left is always in order.
step 1 of 1
Examples