What if when the frequency is the same, and sorted by the alphabetical order?


  • 0
    N

    What if when the frequency is the same, and sorted by the alphabetical order?

    for example: input: abcabc output would be: aabbcc

    how to achieve it?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.