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 maked
Translation Dart
lol, yeah the only error I was getting was that I couldn't make the % operation between an int and a double so I just switched the double with int and it started working, but giving the opposite reult. Thx for the response!
You changed the function to take an int instead of a double, and it ended up really screwing up the tests. You're supposed to return true if n is even, but your code really broke this kata.
I was able to do it, but I am very confused. Am I returning True if the number is odd and False if the number is even?? Because from the Kata name I thought it would be the opposite, and now I'm contemplating if I ever understood C at all.
But you didn't provide the error. By looking at the code, I think that conversions are problematic. "int" datatype may not be accurate enough.
This comment is hidden because it contains spoiler information about the solution
Approved by Johan
Haskell translation
sorry officer hobovsky, i should've put my question in questions, please dont arrest me
@DeCaTou: you can print the input to console to see which test is failing. In your case it is
n = 500000000000
."My solution does not work" is not a valid kata issue. If you want to raise an issue, you have to tell what is wrong with the kata.
This comment is hidden because it contains spoiler information about the solution
Not a kata suggestion, OP solved it, closing...
Approved
Loading more items...