Mental Model
Insertion sort builds a sorted list one item at a time by inserting each new item into its correct place.
Analogy: Imagine sorting playing cards in your hand by picking one card at a time and placing it in the right position among the cards already held.
Unsorted array: [5, 3, 8, 6, 2] Sorted portion ↑ [5] [3, 8, 6, 2] After first insertion: [3, 5] [8, 6, 2] Pointers: i -> current element to insert j -> position to compare in sorted part
