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.
Magic array indexes make me a little uncomfortable. But this is very clean otherwise! Nice work!
My bench had the other top solutions are over a million ops for this solution and the 2nd fastest recursive was 75 ops in the same time... it is scary fast compared to any other solution!!!
My bench had the other top solutions are over a million ops for this solution and the 2nd fastest recursive was 75 ops in the same time... it is scary fast compared to any other solution!!!
Maybe you should be more pedantic (please no offense there:-) and look on Wikipedia at something called "Vacuous truth". It is about empty sets but the result is the same for empty arrays.
Moreover you could also look at the top of the page and see that 5618 guys passed the kata.
See also in the "Details" that the kata was approved by @jhoffner the top chief (and top admin) at CW.
Good luck and cheers.
PS: since you passed the kata you already have all your "thingies":-)
Please check your grammar in the Ruby version.
So hard to read, I'm skipping.
You might want to remove your puts. ;-)
You don't need to use the to_a before the map. Good work though.
Just went and did a yellow to confirm this. Only 1 honor instead of 2.
This is absalutly delightful! Thanks for going the extra mile!
Don't course, use tripple equalls unless you have a specific reason not to.