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 4%
Irratix
#2
41 c.
Top 15%
tree
lydxn
voytxt
#3
44 c.
Top 22%
danielgjackson
Steffan
#4
46 c.
Top 26%
Natanaelel
#5
48 c.
Top 37%
davyboyh
scpchicken
Shanethegamer
#6
51 c.
Top 41%
sisyphus-ppcg
#7
54 c.
Top 52%
maximec-indy
randolchance
Thomas
#8
56 c.
Top 56%
marc-indy
#9
57 c.
Top 59%
KrausRaus
#10
58 c.
Top 63%
Thomasdcrt
#11
59 c.
Top 70%
mathis
AlephSquirrel
#12
63 c.
Top 74%
val
#13
67 c.
Top 78%
CorentinTh
#14
69 c.
Top 81%
Pascal
#15
70 c.
Top 85%
CGjupoulton
#16
72 c.
Top 89%
alexisab
#17
80 c.
Top 93%
Seboran
#18
84 c.
Top 96%
ComputerKWasTaken
#19
91 c.
Top 100%
Benio