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 to the left and bigger books to the right, then repeating this for each side until all books are in order.
Array: [7, 2, 9, 4, 3] Pivot chosen: 3 Partitioned: [2, 3, 9, 4, 7] Left side: [2] Right side: [9, 4, 7]
