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
29 c.
Top 2%
SephQ
#2
39 c.
Top 5%
Irratix
#3
41 c.
Top 12%
tree
voytxt
lydxn
#4
44 c.
Top 17%
danielgjackson
Steffan
#5
46 c.
Top 20%
Natanaelel
#6
48 c.
Top 27%
scpchicken
Shanethegamer
davyboyh
#7
50 c.
Top 29%
Salutations45
#8
51 c.
Top 32%
sisyphus-ppcg
#9
54 c.
Top 44%
maximec-indy
randolchance
SXW172P_thdgit
Thomas
adh98
#10
56 c.
Top 46%
marc-indy
#11
57 c.
Top 49%
KrausRaus
#12
58 c.
Top 51%
Thomasdcrt
#13
59 c.
Top 56%
AlephSquirrel
mathis
#14
63 c.
Top 59%
val
#15
67 c.
Top 61%
CorentinTh
#16
69 c.
Top 63%
Pascal
#17
70 c.
Top 68%
CGjupoulton
Mif712
#18
72 c.
Top 73%
alexisab
madeforlosers
#19
74 c.
Top 76%
dmarkenstein
#20
76 c.
Top 78%
josex2r
#21
79 c.
Top 83%
thaispalmer
Logicer
#22
80 c.
Top 85%
Seboran
#23
81 c.
Top 90%
Vincent
cers
#24
84 c.
Top 93%
ComputerKWasTaken
#25
91 c.
Top 95%
Benio
#26
94 c.
Top 98%
cabz0r
#27
487 c.
Top 100%
Sidd5arth