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.
ok thanks all, I will move global variables inside the function, thanks.
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.
Read comment(s) below, additionaly make sure you don't mutate input anywhere as it will be reflected by logs, also refrain from using issue tag (it refers to kata's problem, use question instead) unless you're sure fault is not on your side.
This comment is hidden because it contains spoiler information about the solution