AlgoViz

Insertion sort

easy 14 min

Insertion sort builds a sorted prefix one value at a time: it takes the next value, shifts every bigger value in the prefix one slot right, and drops the value into the gap.

Explain your choices

Answer first. Then compare your reasoning.

13 questions 0 got it 0 to review13 not marked