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.
Nothing I can do about it. AFAIK It is cast in stone by whoever "Approves" the original Kata.
I don't see anywhere in the description that says
0
is considered positive. However, it may be implicitly implied otherwise to be non-negative... unless you intend to employ-0
. So, the sign must change anyway if a negative number goes to a zero.Your solution has a bug, it's not a kata issue.
Hint:
console.info( -3 % 2 === 1)
.It's already there.
Not a kata issue, you could remove half of that code and it would work too.
Just a guess, but probably the author misunderstood what to do, and created a more general solution for both ascending and descending order and fixed it changing the order of
a
andb
in one of them instead of removing the unneeded code.Next time, better ask in the discourse of that solution instead of creating an issue in the kata.
That requires a higher node's version to work. Try again after selecting it.
Because your regular expression is wrong. Not a kata issue.
You know why. Your solution throws the following error if a
name
is not given:Anyway, not a kata issue. Read this: https://docs.codewars.com/training/troubleshooting/#post-discourse
It's already there, read the description again:
There is no need to guess anything.
reset the trainer and submit again ;)
I agree that this solution should have passed the kata. I think it's silly that 0 and -0 are not considered the same (javascript).