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.
You can break it by setting the input array to have length of 0, and this will pass all the random tests.
The random tests are broken.
Example is in my solution.
It does not work if the random array length is 5. ;)
Do not modify the input array (see comments above).
I think your code does not work. The array length can be up to 100 in the random tests and if the length is greater than 5, your code calculates x-x (== 0).