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.
Groovy Translation
Fair enough. I completely overlooked that
From the kata's description:
Not a kata issue.
One of the weird sample tests uses 1 and expects 1, not -1-.
1 is an odd number and so the test should have dashes
Edit: forgot to mention this is the JavaScript version
for Java, I change parameter in function from int to long. There is a test where num = -2147483648
Approved
Approved
C translation (author gone)
Nice Kata
Nice challenge to solve and to figure out by the way.
Done in JS, TS, Ruby and Crystal
Done in latest fork
Some languages do not generate negative numbers in random tests
JS, TS: random tests may generate
NaN
(when the initial value ofrandNum == 0
).All current languages fixed.
Loading more items...