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
Repeat check mid <= high?
We use three pointers low, mid, and high to sort colors by swapping 0s to the front and 2s to the end, moving mid through the array.
