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.
I return "0"
This comment is hidden because it contains spoiler information about the solution
According to kata description:
You may assume the following:
If a and b are both numbers, neither of a or b will be 0.
but unfortunately, when I check my solution, appeared this error:
return (a % b) + (b % a)
ZeroDivisionError: integer division or modulo by zero
I did this kata in python.
I think that is sth wrong with test cases (for groovy):
assert Kata.game(3,2) == "Joe"
assert Kata.game(4,2) == "Mike"
assert Kata.game(9,1000) == "Joe"
This comment is hidden because it contains spoiler information about the solution
When my code was testeted I've recieved the answer:
expected:<[45385593107843568]> but was:<[01011110001100111]>
Could sb explain me what is that ?
Maybe it's necessary to round temperature to 2 digits. Nobody measures temperature with 8-10 digits precision.
The same problem appears in java.