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.
Added this (plus some other perfomance tests) to all languages: many (most?) of the existing solutions were wiped out...
Negative numbers are not tested.
Just added a test case similar to that mentioned by you.
Just added test cases similar to those mentioned by you (Ruby version pending fixes).
Edit: Now ok.
Just added.
Just added a test case similar to that mentioned by you.
I'd disagree. It took me a bit to understand it, but when it clicked, it made me smile. I think that's what clever solutions are about.
Of course, it would not be good production code at all.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hello,
This is due to the way that the Codewars testing framework processes data from stdout. Printf prints data without a new line - something that Codewars doesn't like. You can use printf, but you will need to add a new line (\n) sequence at the end of your string. See man printf(1) for more information.
Thanks!
they can but I just don't think it's an issue for the kata just a suggestion..
i believe these test cases you are recommending should come under suggestions because this kata has been approved instead of being marked as an issue, because issues deduct points from the kata and the author until they have been resolved :)