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.
using
Math
as a class name in Java is poor practice, since it conflicts with the standard library classjava.lang.math
. It could be renamed, possibly with backwards compatibility through reflection.This is due to the use of raw types in the reference solution:
proposed fix here (author gone)
Also:
Tests generate warnings:
To expand on this, any non zero value returns true, any zero returns false. This means you never need to check if something == 0 in your if statements, you can infer that if it is zero it will return false, and structure the program around that.
I believe this solution works due to incomplete test cases. Like [0,1,2,2,4] will return a true when it should not.
This comment is hidden because it contains spoiler information about the solution
C# translation ready! Please review and approve.
Welp, that's too bad. And the author is active too so let's leave it to him. Anyway, you can approve my other translations (or my kata) XD
Dunno it's a mess there's used to be Crystal and JS but author deleted the languages so I'm refrained from approving your JS XDD
To be fair, he did check. He forked some of them. In fact, one of the translation is his own.
JavaScript translation kumited :). Feel free to check
Wait, I'm confused. What's the original language of this kata? There are Python, Java, Ruby, and CoffeSript translations, but these are also the only available languages. You can't translate it to the same language, right?
should be fixed
should be fixed
Loading more items...