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.
Corrected. Thx.
Glad you liked it :)
That's some great advice. I've corrected the tests accordingly.
Thank you for your feedback!
This error refers to the testMatrix2 which should output expected2. It's the second test, so maybe you should check if your function works properly when called multiple times.
There's a minor mistake in the Kata description:
"range in witch lies square root "
Could someone explain how >>return number | 0<< works?
Thx for the tips! I've modified test cases as you suggested.
In the kata description I mentioned that the function only needs to work for valid ping-pong results:
"There's no need to check if the passed parameter is valid - the score will be always provided in correct syntax and you don't need to check if one of the players has already won - that won't be the case."
40:0 is not a valid result - first player would have already won when the score was 21:0.
I thought this description would be enough, but indeed it assumed that everybody knows the rules.
So to make everything clear I added win conditions rules to the description.
Random-order test cases were added by a suggestion from OverZealous only to reduce the chance of someone cheating by returning the answers directly.
This comment is hidden because it contains spoiler information about the solution
It would be nice if one could save his last Search criteria
One should not be able to get points for resolving a kata he saw solutions to (using Unlock Solutions \forfeit eligibility) button).
Just on the principle... Ofcourse he could still just as easily view the solutions from another account, but that would be just cheating.
How is that this solution passed the tests?
After passing all the tests I get an error saying RangeError: Maximum call stack size exceeded. It looks like an Angular error. How can I fix that?
Can anyone please explain this solution?
This comment is hidden because it contains spoiler information about the solution