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
This comment is hidden because it contains spoiler information about the solution
Nice use of point free form
Nevermind found the problem...
I pass the tests as well and on submit I keep getting reguest timeout, while all the other katas work fine. Did you manage to do something about it?
It'll take only the first match, from the top down. So, yes, you'd have problems if you reversed these two lines, but none as it stands.
amazing!!!
Try again? Sometimes the testing environment just crashes/timeouts/whatever
Linear runtime, right? Pretty inneficient.
This comment is hidden because it contains spoiler information about the solution
My solution passes tests, but when I submit it I get "Unknown error" with no other explanation. It doesn't seem to time out, as I get the error rather immediately, I've covered negative values as well.
What could be the reason for "Unknown error"?
of course there were test-cases (as you've said in your second part of your comment) - just no example test cases, and I've now included a few
No test cases. Wrong test label in the final test (3 `pow` 2 is not 5).
I agree with this. If this hadn't been ranked at 7 kyu, I would have spent a long time working out how to optimally break chocolate in as few "operations" as possible. Clearly that turned out not to be necessary, but I shouldn't have to guess that based on the rating.
This comment is hidden because it contains spoiler information about the solution
Loading more items...