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.
JS Node 18. should be enabled
Test.assertSimilar
should be replaced withassert.Equals
The function
testCustom
in sample test of PHP should be removed as it generates error upon running the default codeDescription should be language-agnostic
well done then
Actually, it's neither of those. It should be:
"The first zero is negative, the second is positive, the third is negative, the fourth is positive, and so on..."
I've added "the third is negative" to the description to make it clearer.
'alr approved some time ago'
Trolling other codewarriors :-P
to break the brains)
What's the point of the conditionals?
health > 0
returns a bool, so a ternary is redundant.You should specify in the description that the every other 0 should be counted as a negative.As it is,it might be interpreted that ALL the 0s after the first one should be counted as negative.Great kata otherwise!
Hi
asmgf
,fixed.
I solved this kata today and still got the same issue.
I think some of the test cases are wrong. The tests seem to contradict each other in what they are asking for:
The instructions say that the first zero is considered 'positive' and the consecutive zeros are considered 'negative'.
Some test cases fail when you add ALL EXCEPT ONE of the 'zero-s' to the total ammount of negative numbers present; some test cases pass with this condition.
Also, some test cases fail when you add ALL of the 'zero-s' to the total ammount of negative numbers; some test cases fail with this condition.
The solution template for C++ is incredible.
varctor
?Loading more items...