Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hello, I considered this - http://www.codewars.com/kata/reviews/55f13ac410a4a6fa0c000022/groups/561d8851e3136f12a4000004
to be the faster one, since it "should" make fewer passes over the input
data(about 2 passes - count for loops, compehension vs up to possibly more than 26 passes of count).
Now I did an actual measurement(https://pastebin.com/cuKueNt7), and it seems I have to eat my words, your solution
is actually significantly faster, though I still don't see the how. I guess I'm still learning new things.
Please don't take that wrong.
Best regards,
Martin.
This seem to be the most comprehensible, but not the fastest.
A sum does not seem very reliable test, I could create an invalid sequence like this: sum([9, 9, 9, 9, 3, 3, 1, 1, 1]) = 45
I like it, it's still fast, but concise & readable.