Bonus! On my machine, this version is even 5 times faster than the best Ruby version!
cat test.py | python -m timeit 100000000 loops, best of 3: 0.00844 usec per loop
This is great. Will use counter effectively. Thanks for showing me counter(). :-)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Bonus! On my machine, this version is even 5 times faster than the best Ruby version!
This is great. Will use counter effectively. Thanks for showing me counter(). :-)