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.
xdranik, i love your solution. battlerattle I also like the creative thinking of yours even if it isn't efficient.
You are absolutely correct! Ugh! I have created a couple forks that I believe resolve that bug.
random() can be overloaded as in my answer.
You should use some test cases where the number is fixed, and some tests case where the number is random(and don't put it into a function).
This comment is hidden because it contains spoiler information about the solution
At this point its too late to change the rating.
6 kyu is correct for this one - check out my solution, you can just use brute force.
Agreed, I ended up hard coding that particular case just because it made no sense for it to behave that way.
Array.isArray is now located here: http://www.codewars.com//kata/525a4cab1650d76b8000084d/discuss/javascript
Howdy,
I just tried this in ruby, and it seems that there are some ruby 2.0 solutions being excluded.
I was confounded by this too. If you are going to specify something for this case, specify throwing an exception.
My code has the following:
I agree. This behaviour is entirely arbitrary.
Forum comments are now sorted by most recent.
What did you have in mind?
Loading more items...