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
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!
Returning an array of numbers would feel more natural than returning a string.