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
Nice use of point free form
amazing!!!
Unfortunately the test cases do not match the description. There shouldn't be any negative input values at all.
That said, it seems, that with the current (haskell) tests it is expected to treat negative values like any other value. Zero is only expected if one of the inputs is zero.
I think this kata needs better tests and a more precise description.
Added, thanks!
Added, thanks.
Fixed, thanks.
Python
Which language is this?
This comment is hidden because it contains spoiler information about the solution
The tests mention String class that is not present and causes compilation fail.
In the example test cases, String(a) should be str(a)
I think your last suggestion could go amiss, but I'll remove the tag and add some example tests.
What is supposed to be returned on (1,-1) or (-1,1)? I thought it might be zero, according to kata's description. Why am I wrong?
Loading more items...