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