Insertion sort
Lesson 6 of 20 · Algo.Micro
Like sorting cards in your hand: take the next one and slide it into place.
The first card alone is sorted (green). Take the next card and slide it left past every bigger card. Now two cards are sorted, then three...
Check yourself
In insertion sort, which part of the list is always sorted?
Do it in the browser: a real algorithms tool, a short mission and instant feedback. No install.
Start this lesson — free