letter frequency

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Display the frequency of letters (a-z) in the input text (case insensitive). Print an empty line if the letter is not included in the text.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

The Time Traveller (for so it will be convenient to speak of him) was
expounding a recondite matter to us. His pale grey eyes shone and
twinkled, and his usually pale face was flushed and animated. The fire
burnt brightly, and the soft radiance of the incandescent lights in the
lilies of silver caught the bubbles that flashed and passed in our
glasses. Our chairs, being his patents, embraced and caressed us rather
than submitted to be sat upon, and there was that luxurious
after-dinner atmosphere, when thought runs gracefully free of the
trammels of precision. And he put it to us in this way—marking the
points with a lean forefinger—as we sat and lazily admired his
earnestness over this new paradox (as we thought it) and his fecundity.

"You must follow me carefully. I shall have to controvert one or two
ideas that are almost universally accepted. The geometry, for instance,
they taught you at school is founded on a misconception."

"Is not that rather a large thing to expect us to begin upon?" said
Filby, an argumentative person with red hair.

"I do not mean to ask you to accept anything without reasonable ground
for it. You will soon admit as much as I need from you. You know of
course that a mathematical line, a line of thickness _nil_, has no real
existence. They taught you that? Neither has a mathematical plane.
These things are mere abstractions."

Sample output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbb
ccccccccccccccccccccccccccccccc
ddddddddddddddddddddddddddddddddddddd
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
ffffffffffffffffffffffffff
gggggggggggggggggggggg
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii

kkkkkk
lllllllllllllllllllllllllllllllllllllllllllllll
mmmmmmmmmmmmmmmmmmmmmmmmmm
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
ppppppppppppppppppp

rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
vvvvvvvv
wwwwwwwwwwwwwwwww
xxxxx
yyyyyyyyyyyyyyyyyyyyyy
z

Sample input:_

"I am afraid, Watson, that I shall have to go," said Holmes, as we sat
down together to our breakfast one morning.

"Go! Where to?"

"To Dartmoor; to King's Pyland."

I was not surprised. Indeed, my only wonder was that he had not already
been mixed up in this extraordinary case, which was the one topic of
conversation through the length and breadth of England. For a whole day
my companion had rambled about the room with his chin upon his chest and
his brows knitted, charging and recharging his pipe with the strongest
black tobacco, and absolutely deaf to any of my questions or remarks.
Fresh editions of every paper had been sent up by our news agent, only
to be glanced over and tossed down into a corner. Yet, silent as he was,
I knew perfectly well what it was over which he was brooding. There was
but one problem before the public which could challenge his powers of
analysis, and that was the singular disappearance of the favorite for
the Wessex Cup, and the tragic murder of its trainer. When, therefore,
he suddenly announced his intention of setting out for the scene of the
drama it was only what I had both expected and hoped for.

"I should be most happy to go down with you if I should not be in the
way," said I.

"My dear Watson, you would confer a great favor upon me by coming. And
I think that your time will not be misspent, for there are points about
the case which promise to make it an absolutely unique one. We have, I
think, just time to catch our train at Paddington, and I will go further
into the matter upon our journey. You would oblige me by bringing with
you your very excellent field-glass."

Sample output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbb
ccccccccccccccccccccccccccccccccc
dddddddddddddddddddddddddddddddddddddddddddddddddddddddd
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
fffffffffffffffffffffffffff
ggggggggggggggggggggggggggggg
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
jj
kkkkkkkkk
lllllllllllllllllllllllllllllllllllllllllll
mmmmmmmmmmmmmmmmmmmmmmmmmm
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
pppppppppppppppppppppppppppp
qq
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
vvvvvvvvv
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
xxxxx
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

Sample input:_

In the shade of the house, in the sunshine of the riverbank near the
boats, in the shade of the Sal-wood forest, in the shade of the fig tree
is where Siddhartha grew up, the handsome son of the Brahman, the young
falcon, together with his friend Govinda, son of a Brahman.  The sun
tanned his light shoulders by the banks of the river when bathing,
performing the sacred ablutions, the sacred offerings.  In the mango
grove, shade poured into his black eyes, when playing as a boy, when
his mother sang, when the sacred offerings were made, when his father,
the scholar, taught him, when the wise men talked.  For a long time,
Siddhartha had been partaking in the discussions of the wise men,
practising debate with Govinda, practising with Govinda the art of
reflection, the service of meditation.  He already knew how to speak the
Om silently, the word of words, to speak it silently into himself while
inhaling, to speak it silently out of himself while exhaling, with all
the concentration of his soul, the forehead surrounded by the glow of
the clear-thinking spirit.  He already knew to feel Atman in the depths
of his being, indestructible, one with the universe.

Joy leapt in his father's heart for his son who was quick to learn,
thirsty for knowledge; he saw him growing up to become great wise man
and priest, a prince among the Brahmans.

Bliss leapt in his mother's breast when she saw him, when she saw him
walking, when she saw him sit down and get up, Siddhartha, strong,
handsome, he who was walking on slender legs, greeting her with perfect
respect.

Love touched the hearts of the Brahmans' young daughters when
Siddhartha walked through the lanes of the town with the luminous
forehead, with the eye of a king, with his slim hips.

Sample output:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbb
ccccccccccccccccccccc
ddddddddddddddddddddddddddddddddddddddddddddddddd
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
fffffffffffffffffffffffffffffffffffffff
gggggggggggggggggggggggggggggggggggggggggg
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
j
kkkkkkkkkkkkkkkkk
llllllllllllllllllllllllllllllllllllllllllllll
mmmmmmmmmmmmmmmmmmmmmmmmmmmmm
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
ppppppppppppppppppppp
q
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
uuuuuuuuuuuuuuuuuuuuuuuuu
vvvvvvvvv
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
x
yyyyyyyyyyyyyyy

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat480.03832019/01/18 05:39:020B / 24B / 23B
2kaki480.03722019/09/25 00:18:540B / 25B / 20B
3llhuii490.03772019/09/24 22:56:140B / 18B / 30B
4mitchs500.03442019/01/17 14:03:120B / 27B / 20B
5clock500.04322019/01/17 22:43:390B / 27B / 21B
6rotary-o500.03512019/01/18 01:56:270B / 27B / 20B
7tmtms510.03792019/09/08 01:33:350B / 28B / 22B
8Unihedron ユニ540.03252019/04/07 17:59:110B / 32B / 20B
9krswtkhr550.03532019/02/08 16:00:250B / 31B / 23B
10wataken44560.03382019/01/18 19:04:130B / 31B / 24B
11560.03252019/02/21 00:39:280B / 32B / 22B

Ruby2 _

RankUserSizeTimeDateStatistics
1llhuii460.15512019/09/24 22:54:010B / 18B / 28B
2mitchs510.15922019/01/17 17:06:190B / 28B / 21B
3rotary-o510.14972019/01/18 01:57:560B / 28B / 20B
4Histocrat510.14942019/01/20 04:51:450B / 30B / 20B
5letranger510.14872019/04/24 22:05:380B / 30B / 19B
6tmtms510.14642019/08/15 00:21:380B / 29B / 21B
7krswtkhr600.15972019/02/08 15:37:240B / 37B / 22B
8youchan610.15932019/08/15 19:30:010B / 36B / 24B
9yantene640.16742019/09/03 19:45:390B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tails350.06192019/01/15 12:06:050B / 14B / 20B
2llhuii350.03392019/06/26 08:23:380B / 14B / 20B
3%20380.06312019/05/01 04:26:090B / 16B / 20B
4teebee380.04542022/04/30 17:46:000B / 15B / 22B

Python _

RankUserSizeTimeDateStatistics
1llhuii780.07632019/06/26 08:13:100B / 45B / 33B
2mitchs780.09752019/06/26 13:03:340B / 45B / 32B
3xsot780.07542019/06/29 10:44:380B / 45B / 32B
4Dingledooper780.09162021/01/28 04:44:520B / 45B / 32B
5starmie800.07572019/07/05 20:03:310B / 46B / 32B
6clock800.07202019/08/14 23:54:390B / 46B / 32B
7hallvabo820.07072019/01/15 00:03:400B / 50B / 27B
8rolf840.07432019/06/08 06:52:010B / 47B / 36B

Python3 _

RankUserSizeTimeDateStatistics
1llhuii770.13722019/10/01 11:52:400B / 41B / 36B
2mitchs770.11952019/10/02 08:06:010B / 46B / 28B
3mypetlion850.12082019/06/26 06:15:030B / 53B / 24B

PHP _

RankUserSizeTimeDateStatistics
1Saikoro20071340.05732019/05/18 02:31:140B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1030.16482019/08/15 19:07:210B / 62B / 34B

JavaScript _

RankUserSizeTimeDateStatistics
10mg900.06352019/04/29 14:31:400B / 54B / 34B
2FizzyTea1070.05452019/02/01 21:16:050B / 56B / 49B
3copy1090.32892019/09/08 04:55:400B / 57B / 52B
4ZED.CWT1320.04802019/02/01 14:12:470B / 79B / 53B
5asterisk_man1380.04212019/05/31 23:05:190B / ?B / ?B
6JomoPipi1410.05482019/02/01 04:18:260B / ?B / ?B
71410.35212019/09/08 02:19:300B / ?B / ?B
8dball1450.04672019/08/14 05:18:010B / 90B / 52B

Lua _

RankUserSizeTimeDateStatistics
1tehtmi780.01612019/03/24 04:40:310B / 49B / 26B
2clock780.03612019/04/05 08:32:370B / 45B / 30B

Tcl _

RankUserSizeTimeDateStatistics
1toomas1010.14612019/01/25 19:18:270B / 60B / 24B
2clock1010.14442019/01/30 01:17:530B / 60B / 22B

Crystal _

RankUserSizeTimeDateStatistics
1yuruhiya700.06502020/12/09 12:42:470B / ?B / ?B
2clock710.03882019/08/20 01:10:150B / 35B / 33B

J _

RankUserSizeTimeDateStatistics
1Frowny390.06472019/09/04 12:27:440B / ?B / ?B
2500.06072019/08/17 14:43:450B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
1tails710.03322019/06/26 13:24:570B / 34B / 37B
2llhuii720.03342019/01/22 20:53:150B / 39B / 33B
30mg790.02292019/09/10 16:31:430B / 37B / 42B
4TokusiN880.03152019/01/29 22:52:120B / 47B / 41B

Chapel _

RankUserSizeTimeDateStatistics
1clock1280.07662019/03/18 23:59:460B / 75B / 47B

AWK _

RankUserSizeTimeDateStatistics
1test740.04012019/09/19 18:25:550B / ?B / ?B
2llhuii740.02572019/09/22 21:13:560B / 44B / 29B

sed _

RankUserSizeTimeDateStatistics
1mitchs771.74912019/01/15 12:24:490B / 36B / 32B
2tails791.32272019/01/15 10:49:210B / 38B / 31B
3clock791.33062019/01/17 01:27:470B / 38B / 31B

jq _

RankUserSizeTimeDateStatistics
1clock710.84262019/10/02 15:13:390B / 39B / 32B

Bash _

RankUserSizeTimeDateStatistics
1eban430.10762019/11/19 16:49:570B / 22B / 15B
2McBusLuck940.05432019/07/24 02:37:170B / 44B / 40B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii572.09572019/01/19 00:01:410B / 25B / 25B
2tails571.75442019/01/21 17:38:490B / 20B / 31B
3McBusLuck771.54062019/07/24 04:20:540B / 33B / 33B

bc _

RankUserSizeTimeDateStatistics
1McBusLuck8490.02702020/05/29 01:16:580B / 351B / 470B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii740.05682019/02/16 10:33:500B / 42B / 32B

R _

RankUserSizeTimeDateStatistics
1teebee770.36032021/04/25 05:21:040B / 47B / 27B
2olf770.36702021/04/25 19:13:430B / 47B / 26B
3clock1000.34212019/10/01 02:14:000B / 64B / 34B

GolfScript _

RankUserSizeTimeDateStatistics
1tails240.32002019/01/16 14:52:330B / 7B / 17B
2mitchs240.33132019/01/19 10:58:260B / 7B / 17B
3clock240.32082019/01/24 01:12:460B / 7B / 17B

gs2 _

RankUserSizeTimeDateStatistics
1tails110.25772019/01/15 09:31:536B / 3B / 0B
2mitchs110.22752019/01/19 00:29:426B / 3B / 0B

Vim _

RankUserSizeTimeDateStatistics
1FizzyTea480.09702019/01/18 09:17:541B / 30B / 15B

goruby _

RankUserSizeTimeDateStatistics
1mitchs380.09222019/04/05 11:48:120B / 17B / 19B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o907.04242020/01/04 21:43:272B / 56B / 28B
2Hendrik926.85212020/06/07 03:33:040B / 64B / 24B
3clock947.05952019/11/19 03:48:470B / 60B / 29B

Logo _

RankUserSizeTimeDateStatistics
1clock641.04022019/04/27 01:16:370B / 45B / 10B

Language Ranking_

RankLangUserSizeScore
1gs2tails1110000
2GolfScripttails244583
3Perltails353142
4gorubymitchs382894
5JFrowny392820
6Basheban432558
7Ruby2llhuii462391
8RubyHistocrat482291
9VimFizzyTea482291
10Bash (builtins)llhuii571929
11Logoclock641718
12Crystalyuruhiya701571
13Ctails711549
14jqclock711549
15xgawkllhuii741486
16AWKtest741486
17sedmitchs771428
18Python3llhuii771428
19Rteebee771428
20Luatehtmi781410
21Pythonllhuii781410
22JavaScript0mg901222
23Scalarotary-o901222
24Tcltoomas1011089
25Schemekaki1031067
26Chapelclock128859
27PHPSaikoro2007134820
28bcMcBusLuck849129

return to the top page