You are given an array. Your task is to sort the array in given manner. Print the elements in increasing order of the frequency. If frequency is same print smaller one first
Created 3 years ago
1355
Views
2
Comments
Sample Input :
4
1 1 3 2
Sample Output :
2 3 1