Back

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
Charan96
@Charan96
Charan96
@Charan96Profile is locked. Login
Sample Input :
4
1 1 3 2
Sample Output :
2 3 1
Comments (2)
Please login to comment.