Mental Model
We rearrange an array into three parts: smaller than pivot, equal to pivot, and greater than pivot, all in one pass.
Analogy: Imagine sorting colored balls into three bins: red, white, and blue. You pick each ball once and put it in the right bin without extra space.
Index: 0 1 2 3 4 5 6 Array: 2 0 2 1 1 0 2 Pointers: low ↑ mid ↑ high ↑
