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.
This Kata has a mistake in the description or in JavaScript tests.
Kаtа Description: "Any activities completed that are ranking 2 levels or more lower than the user's ranking will be ignored".
But tests require that progress in these cases is still increased by 1, and not ignored.
Please correct either the description or the tests!
This comment is hidden because it contains spoiler information about the solution
this solution returns
pos=[3, 7, 10], peaks=[6, 3, 4]
and notpos=[3, 7], peaks=[6, 3]
, for this input.This solution gives a failure to this arr 3,2,3,6,4,1,2,3,2,1,4,3
it says it should return pos=[3, 7], peaks=[6, 3]
but this actually returns pos=[3, 7, 10], peaks=[6, 3, 4]
which I think is ture because if Iam not wrong 4 here is a peak!!