Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Time comparation of the presented solutions (not an answer)
I use as
input the Portuguese translation of Victor Hugo "Les Miserables" (great book!) and count the occurrences of "a". My edition has 5 volumes, many pages...
$ wc miseraveis.txt
29331 304166 1852674 miseraveis.txt (my edition has 5 volumes, many pages)
Time comparation (not an answer)
I use as
input the Portuguese translation of Victor Hugo "Les Miserables" (great book!) and count the occurrences of "a".
$ wc miseraveis.txt
29331 304166 1852674 miseraveis.txt (my edition has 5 volumes, many pages)
Time comparation of the presented solutions (not an answer)
I use as
input the Portuguese translation of Victor Hugo "Les Miserables" (great book!) and count the occurrences of "a". My edition has 5 volumes, many pages...