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.
I searched there and didn't find it. In your first line print the array (console.log(arr)) and press attempt. After that we could check if the array is exactly as you say
It was in the section of random tests.
I tried to do it in JavaScript however I dind't find any test case with these sequence: -47, 5, -29, -34.Anyway your result -24 is correct.
This comment is hidden because it contains spoiler information about the solution
It's a great Kata.