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 don't need to get min and max of them. If you are summing over whole array, it doesn't matter which if you reduce or reduceRight.
sum of [-2, -1, 0, 1, 2] is the same as sum of [2, 1, 0, -1, -2]
And you don't need fat arraow :)
Happy coding!