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.
That would make sense. The only issue is that I still have some tests passing with more than one number input arrays.
Edit: Ignore this, I copied the array and it works fine.
My JavaScript code fails 91 tests. All of these test cases have more than one number and say they were expecting zero. I've gone through some of the smaller ones by hand and the answer from my code seems to be right.
Edit: Apart from the special cases, surely it's only possible for the answer to be zero if all the numbers in the array are the same.