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 4%
Rag
SephQ
#2
39 c.
Top 9%
Lv0Sys
helbling
Irratix
#3
41 c.
Top 15%
tree
lydxn
voytxt
#4
44 c.
Top 19%
danielgjackson
Steffan
#5
46 c.
Top 23%
Natanaelel
smclaughlin-cf
#6
48 c.
Top 28%
davyboyh
scpchicken
Shanethegamer
#7
49 c.
Top 32%
DigiZoli
Alex
#8
50 c.
Top 34%
Salutations45
#9
51 c.
Top 36%
sisyphus-ppcg
#10
54 c.
Top 51%
SXW172P_thdgit
maximec-indy
adh98
randolchance
Thomas
XenThe
MaelkMark
Ryan
#11
56 c.
Top 53%
marc-indy
#12
57 c.
Top 55%
KrausRaus
#13
58 c.
Top 57%
Thomasdcrt
#14
59 c.
Top 60%
AlephSquirrel
mathis
#15
63 c.
Top 62%
val
#16
64 c.
Top 64%
c
#17
67 c.
Top 66%
CorentinTh
#18
69 c.
Top 68%
Pascal
#19
70 c.
Top 72%
CGjupoulton
Mif712
#20
72 c.
Top 75%
madeforlosers
alexisab
#21
74 c.
Top 77%
dmarkenstein
#22
76 c.
Top 79%
josex2r
#23
79 c.
Top 83%
Logicer
thaispalmer
#24
80 c.
Top 85%
Seboran
#25
81 c.
Top 89%
cers
Vincent
#26
84 c.
Top 91%
ComputerKWasTaken
#27
88 c.
Top 92%
Adrien1605036937
#28
91 c.
Top 94%
Benio
#29
94 c.
Top 96%
cabz0r
#30
179 c.
Top 98%
Luke
#31
487 c.
Top 100%
Sidd5arth