Sort an array of 0s, 1s and 2s | Dutch National Flag problem

Given an array A[] consisting of only 0s, 1s, and 2s. The task is to write a function that sorts the given array. The functions … Continue reading Sort an array of 0s, 1s and 2s | Dutch National Flag problem