LeetCode: 451-Sort Characters By Frequency 解題紀錄
Last Updated on 2022-12-03 by Clay
題目
Given a string s
, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string.