Sort an array of 0’s, 1’s, and 2’s (Dutch National Flag Problem) | Techie Delight
Given an array containing only 0's, 1's, and 2's, sort it in linear time and using constant space.. A simple solution would be to perform a counting sort..
Techie Delight