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 books by picking one book as a reference, then putting all smaller books on one side and bigger books on the other, and repeating this for each side until all books are in order.
Array: [7, 2, 5, 3, 9] Pivot chosen: 5 Partitioned: [2, 3] -> 5 -> [7, 9]