š” Insertion Sort in Layman's Terms
Insertion Sort works like sorting playing cards in your hand! It treats the 1st card on the far left as already sorted, then picks up each remaining card one-by-one from left to right and inserts it into its exact spot.
š Real-World Analogy: Organizing Playing Cards in Your HandImagine holding cards [3, 5, 8] already sorted in your left hand. You pick up the next card 6 from the table. You compare 6 with 8 ā since 8 is bigger, you slide 8 right to make a gap. Next, you compare 6 with 5 ā since 5 is smaller, you stop and insert 6 right into the gap between 5 and 8!