Most Frequent Letter Count

Determine the frequency of the most common letter in a string.

Easy12/15/2023

Problem statement

Write a program that accepts a string and returns the frequency of the most frequent letter in the string. The input string will only contain lowercase letters. If two or more letters have the same highest frequency, return the frequency of any one of them.

Problem leaderboard

#
Size
%
Users
#1
39 c.
Top 3%
Irratix
#2
41 c.
Top 11%
voytxt
tree
lydxn
#3
44 c.
Top 16%
Steffan
danielgjackson
#4
46 c.
Top 19%
Natanaelel
#5
48 c.
Top 27%
scpchicken
Shanethegamer
davyboyh
#6
50 c.
Top 30%
Salutations45
#7
51 c.
Top 32%
sisyphus-ppcg
#8
54 c.
Top 43%
Thomas
randolchance
SXW172P_thdgit
maximec-indy
#9
56 c.
Top 46%
marc-indy
#10
57 c.
Top 49%
KrausRaus
#11
58 c.
Top 51%
Thomasdcrt
#12
59 c.
Top 57%
AlephSquirrel
mathis
#13
63 c.
Top 59%
val
#14
67 c.
Top 62%
CorentinTh
#15
68 c.
Top 65%
SephQ
#16
69 c.
Top 68%
Pascal
#17
70 c.
Top 70%
CGjupoulton
#18
72 c.
Top 76%
alexisab
madeforlosers
#19
74 c.
Top 78%
dmarkenstein
#20
76 c.
Top 81%
josex2r
#21
79 c.
Top 84%
Logicer
#22
80 c.
Top 86%
Seboran
#23
81 c.
Top 92%
Vincent
cers
#24
84 c.
Top 95%
ComputerKWasTaken
#25
91 c.
Top 97%
Benio
#26
94 c.
Top 100%
cabz0r