Leetcode 0451. Sort Characters By Frequency
Posted on Sat 03 December 2022 in Leetcode • Tagged with counting
Question Link : https://leetcode.com/problems/sort-characters-by-frequency/
Difficulty: Medium
Premium: False
Question
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. Return the sorted string. If there are …
Continue reading