What output should I print for strings which contain equal number of max frequency characters i.e , for example strings like aabb , aaacccbbb , ab etc
Doubt regarding Max Frequency character problem
@Lalit2142,
In case 2 chars have the same frequency, you should print the char which occurs first in the alphabetical order
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.