0

Solve this problem

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

1st Dec 2022, 11:25 AM
KG YADAV
3 Answers
+ 2
What is your question? Please tag only the relevant programming language.
1st Dec 2022, 12:13 PM
Lisa
Lisa - avatar
+ 3
KG YADAV Show your attempt and write clearly what problem you are facing in code?
1st Dec 2022, 12:22 PM
R🍁🇼🇳
R🍁🇼🇳 - avatar
0
C++
1st Dec 2022, 12:14 PM
KG YADAV