Problem, take string input -> zzzzttteeeqqaao.....solve it in javascript
// Problem, take string input -> zzzzttteeeqqaao
// Sort first based on frequency of characters in desc order, if freq is same, then sort alphabetically in asc order.
// Expected output -> zzzzeeetttaaqqo
No answers yet!
3 years ago by shivam swami