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.
Nice! I actually learned something here...
hehehe. noice.
This comment is hidden because it contains spoiler information about the solution
This works amazingly well, but can anyone explain what it's actually doing?
I couldn't really see a way to handle
in_range
in the same way as the others, without cracking openInteger
as well, which I was trying to avoid. However, I've just realised myin_range
method is broken.prepend
+1Not sure about the
range.to_a
. I like way to dried up the method defs.I should try harder to avoid
method_missing
.+1 modules
I like the way you've extended
Integer
so that you can generalise the filter, but don't like the indiscriminate use ofmethod_missing
. Also, you could DRY upunder
andover
.Y U2 NO DRY 'Ho'???
Your solution looks great. Very consise. Mine was very naive.
Nice trick to use a lambda, but using a recursive function to iterate over Fibonacci takes O(n^2) time.