题目
Given a string, sort it in decreasing order based on the frequency of characters.
Example 1:
1 | Input: |
Example 2:
1 | Input: |
Example 3:
1 | Input: |
思路
打卡题。
代码
1 | class Solution(object): |
Given a string, sort it in decreasing order based on the frequency of characters.
Example 1:
1 | Input: |
Example 2:
1 | Input: |
Example 3:
1 | Input: |
打卡题。
1 | class Solution(object): |