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