Given an array which consists of only 0, 1 and 2. Sort the array without using any sorting algo
Given an array which consists of only 0, 1 and 2. Sort the array without using any sorting algo
Sort an array of 0s, 1s and 2s
Given an array of size N containing only 0s, 1s, and 2s; sort the array in ascending order.Example 1:
Input:
N = 5
arr[]= ...