Concept Flow - Sort Colors Two Pointer Dutch Flag
Initialize pointers: low=0, mid=0, high=n-1
Check mid <= high?
No→Done
Yes
Inspect nums[mid
Swap nums[low
If 1: mid++
If 2: Swap nums[mid
Repeat check mid <= high?
We use three pointers low, mid, and high to sort colors by swapping 0s to front, 2s to end, and 1s stay in middle.
