Concept Flow - Dutch National Flag Three Way Partition
Start with array and pivot
Initialize low, mid, high pointers
Check mid <= high?
No→Done
Yes
Compare arr[mid
Swap arr[low
low++, mid++
↩Back to check mid <= high
The algorithm uses three pointers to partition the array into three parts: less than pivot, equal to pivot, and greater than pivot, by swapping elements and moving pointers until mid passes high.
