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.
The answer to previous test is [ 1, 2, 1, 1, 3, 1, 0, 0, 0, 0 ], so I think we know what's going on here :>
@pchan2: Move your global variables inside the function.
The tests are fine. What B1ts was trying to point out is that you probably have a bug in your code.
Just to be clear:
You have
[1,2,1,1,3,1]
at the beginning of your result; where did those digits come from? A likely case is that you are using global variables and one test is polluting the next test.This comment is hidden because it contains spoiler information about the solution