Concept Flow - Sort Colors Two Pointer Dutch Flag
Start with array
Initialize pointers: low=0, mid=0, high=end
While mid <= high
Check array[mid
Swap with low
Increment low, mid
Repeat until mid > high
Array sorted: 0s, then 1s, then 2s
This flow shows how two pointers (low and high) and a mid pointer move through the array to sort colors by swapping 0s to the front and 2s to the end, leaving 1s in the middle.
