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
2mitchs500.03442019/01/17 14:03:120B / 27B / 20B
3clock500.04322019/01/17 22:43:390B / 27B / 21B
4rotary-o500.03512019/01/18 01:56:270B / 27B / 20B
5llhuii500.03902019/01/18 23:40:410B / 27B / 22B
6krswtkhr550.03532019/02/08 16:00:250B / 31B / 23B
7wataken44560.03382019/01/18 19:04:130B / 31B / 24B
8560.03252019/02/21 00:39:280B / 32B / 22B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs510.15922019/01/17 17:06:190B / 28B / 21B
2rotary-o510.14972019/01/18 01:57:560B / 28B / 20B
3Histocrat510.14942019/01/20 04:51:450B / 30B / 20B
4letranger560.18092019/01/30 23:45:520B / 36B / 17B
5krswtkhr600.15972019/02/08 15:37:240B / 37B / 22B

Perl _

RankUserSizeTimeDateStatistics
1tails350.06192019/01/15 12:06:050B / 14B / 20B
2llhuii380.03952019/01/18 22:18:520B / 15B / 22B

Python _

RankUserSizeTimeDateStatistics
1mitchs800.07212019/01/15 01:06:440B / 46B / 31B
2llhuii800.07442019/01/18 23:38:290B / 43B / 37B
3hallvabo820.07072019/01/15 00:03:400B / 50B / 27B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs800.12012019/02/05 09:42:100B / 48B / 30B
2mypetlion870.12222019/02/06 01:38:550B / 51B / 31B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea1070.05452019/02/01 21:16:050B / 56B / 49B
2ZED.CWT1320.04802019/02/01 14:12:470B / 79B / 53B
3JomoPipi1410.05482019/02/01 04:18:260B / ?B / ?B
41510.04722019/02/01 04:03:050B / 91B / 55B

Tcl _

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

C _

RankUserSizeTimeDateStatistics
1llhuii720.03342019/01/22 20:53:150B / 39B / 33B
2tails760.03482019/01/21 10:33:260B / 37B / 39B
3TokusiN880.03152019/01/29 22:52:120B / 47B / 41B

AWK _

RankUserSizeTimeDateStatistics
1llhuii760.04022019/02/16 10:25:540B / 42B / 34B

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

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii572.09572019/01/19 00:01:410B / 25B / 25B
2tails571.75442019/01/21 17:38:490B / 20B / 31B

xgawk _

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

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

Scala _

RankUserSizeTimeDateStatistics
1rotary-o966.70362019/01/19 18:34:220B / 58B / 32B
2Hendrik966.43762019/02/09 20:44:500B / 53B / 40B

Language Ranking_

RankLangUserSizeScore
1gs2tails1110000
2GolfScripttails244583
3Perltails353142
4RubyHistocrat482291
5VimFizzyTea482291
6Ruby2mitchs512156
7Bash (builtins)llhuii571929
8Cllhuii721527
9xgawkllhuii741486
10AWKllhuii761447
11sedmitchs771428
12Pythonmitchs801375
13Python3mitchs801375
14Scalarotary-o961145
15Tcltoomas1011089
16JavaScriptFizzyTea1071028

return to the top page