Skip to main content
edited body
Source Link
JJoao
  • 12.8k
  • 1
  • 26
  • 45

Time comparationcomparison of the presented solutions (not an answer)

The efficiency of the answers is not important. Nevertheless,following following @josephwb approach, I tried to time all the answers presented.

Time comparation of the presented solutions (not an answer)

The efficiency of the answers is not important. Nevertheless,following @josephwb approach, I tried to time all the answers presented.

Time comparison of the presented solutions (not an answer)

The efficiency of the answers is not important. Nevertheless, following @josephwb approach, I tried to time all the answers presented.

added 29 characters in body
Source Link
JJoao
  • 12.8k
  • 1
  • 26
  • 45

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...

$ wc miseraveis.txt 
29331  304166 1852674 miseraveis.txt 
added 2 characters in body
Source Link
JJoao
  • 12.8k
  • 1
  • 26
  • 45

I run eachEach answer was run 3 times and choose the best.

I run each answer 3 times and choose the best.

Each answer was run 3 times and choose the best.

deleted 18 characters in body
Source Link
JJoao
  • 12.8k
  • 1
  • 26
  • 45
Loading
added 12 characters in body
Source Link
JJoao
  • 12.8k
  • 1
  • 26
  • 45
Loading
deleted 1 character in body
Source Link
JJoao
  • 12.8k
  • 1
  • 26
  • 45
Loading
added 252 characters in body
Source Link
JJoao
  • 12.8k
  • 1
  • 26
  • 45
Loading
Source Link
JJoao
  • 12.8k
  • 1
  • 26
  • 45
Loading