Mental Model
Quick Sort splits the list into smaller parts around a pivot, sorting each part separately until the whole list is sorted.
Analogy: Imagine sorting a pile of cards by picking one card as a divider, putting smaller cards on one side and bigger cards on the other, then repeating this for each side until all cards are in order.
List: [7, 2, 5, 3, 9] Pivot chosen: 9 Partitioned: [7, 2, 5, 3] -> 9 -> []
