/Sort-an-array-of-0s-1s-and-2s

Given an array containing only 0s, 1s and 2s. Sort the array in O(n) time i.e. process the array only once to do this sorting.

Sort-an-array-of-0s-1s-and-2s

Given an array containing only 0s, 1s and 2s. Sort the array in O(n) time i.e. process the array only once to do this sorting.