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.
This comment is hidden because it contains spoiler information about the solution
Written by Java programmer?
This comment is hidden because it contains spoiler information about the solution
How you come up with this formula?
Nice! I've come up with the same idea, but my code is much more verbose.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Finally got it lol
Thanks!
For some reason I couldn't find how to do this in Ruby, just know the "console.log" in JS.
This is the problem, input is visible only for a three tests, the oputput for those is accepted. Just like 6 out of 7 tests with no visible input.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Great solution. Faster than two top ones. And pretty readable.
But I would use 'each' instead of 'for'. And '&&' instead of 'and'.