b4284 / count-first-letters

Counts first letter from a list of names.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to play

Read names.txt, count the number of first letter of each line from a to z respectively, and display statistical summary.

Format of result

<LETTER> <TIMES>

Results

A 211680
B 27216
C 56952
D 58968
E 104328
F 28728
G 28728
H 42840
I 40320
J 92232
K 29736
L 119448
M 166320
N 69552
O 41832
P 20160
Q 1008
R 39312
S 106848
T 35784
U 4032
V 31752
W 18144
X 4032
Y 24696
Z 17640

Speed

  • c/b4283.scm 0.01s
  • scheme-guile/b4283.scm 7.89s

About

Counts first letter from a list of names.


Languages

Language:Scheme 54.2%Language:C 45.8%