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.
Not an issue, as pointed out by @Chrono79.
The user can modify the input.
You're mutating the input (pretty much the same problem as h9e had below).
There are issues with the random tests (Javascript):
Log
[ 9, 6, 7, 3, 2, 6, 0, 6 ]
Expected: 0, instead got: 1
Log
[ 0, 2, 5, 9, 4, 5, 5, 7 ]
Expected: 0, instead got: 1