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.
Very nice, but use double quotes for string interpolation only!
Same bro xD.This was my first attempt seems I am getting a hang of it :)
Ruby fixed.
not according to the Ruby style guide
Turns out i hit my head hard after i submitted - because i missed about the i flag :D
Isn't better to use oneliner like:
def square a; a*a end
This comment is hidden because it contains spoiler information about the solution
Not a legitimate solution but may expose the message error in Ruby:
Not sure how to reproduce this. Please provide some example code.
Does it handle strings and symbols for keys?
This comment is hidden because it contains spoiler information about the solution
True, also won't work if somebody gave the hash a non-falsey default value
Of course that depends on the number of "special operations" you need to perform. Since it's fine for the current test cases, why bother with writing it out as a while loop?
If there would be a test case which does give this problem, rewriting it to a non-recursive form is the first thing one would do...
Indeed. Who needs floating point math? ;)
agreed, still failing w/ test error
Loading more items...