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 12%
tree
lydxn
voytxt
#3
44 c.
Top 18%
danielgjackson
Steffan
#4
46 c.
Top 21%
Natanaelel
#5
48 c.
Top 29%
davyboyh
scpchicken
Shanethegamer
#6
50 c.
Top 32%
Salutations45
#7
51 c.
Top 35%
sisyphus-ppcg
#8
54 c.
Top 47%
maximec-indy
SXW172P_thdgit
Thomas
randolchance
#9
56 c.
Top 50%
marc-indy
#10
57 c.
Top 53%
KrausRaus
#11
58 c.
Top 56%
Thomasdcrt
#12
59 c.
Top 62%
mathis
AlephSquirrel
#13
63 c.
Top 65%
val
#14
67 c.
Top 68%
CorentinTh
#15
69 c.
Top 71%
Pascal
#16
70 c.
Top 74%
CGjupoulton
#17
72 c.
Top 79%
alexisab
madeforlosers
#18
74 c.
Top 82%
dmarkenstein
#19
79 c.
Top 85%
Logicer
#20
80 c.
Top 88%
Seboran
#21
81 c.
Top 91%
cers
#22
84 c.
Top 94%
ComputerKWasTaken
#23
91 c.
Top 97%
Benio
#24
94 c.
Top 100%
cabz0r