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.
E x a c t l y .
Thanks for writing, I had this problem.
Exactly.
The longest non-negative sequence is 5 in the example you provided. you think it's 7 because you mistakenly omitted one of the -1 values in the sequence.
You can suggest some clarification in the description if it's not clear enough. Sequence vs sub-section for instance.
As Chrono79 explained, 5 is the correct answer for that input.
It seems it's Python:
There are three
-1
in a row there, the expected answer of 5 is ok0, 0, 0, 1, -1
Those are 2 sub-sections.
which language?