CT1548

The Most Frequent Mark of the Hidden labels

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

The harbor bell rings at the copper works of Verdigris; Curator weighs the day's labels manifests and starts the calculations. Task: Read a lowercase string s and print the character that occurs most often. If several tie, print the alphabetically smallest. Input format: One line with a single lowercase string s. Output format: Print a single character. Constraints: 1 <= |s| <= 89; s contains lowercase English letters.

Example 1:

Input: ogveakyyrsswkph
Output: k

Example 2:

Input: zbgkzfdfjryfbhxwubhaabvbicthawjndpgqewtlplpckkfwmrfl
Output: b

Example 3:

Input: fatjfdwjiqyswkwxpvwsiusxfggaasoeovfbcbmnsuz
Output: s

Constraints:

1 <= |s| <= 89; s contains lowercase English letters.

Loading...
Test Cases:No test cases
No test cases available.