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.
Short and sweet!
Thank you.
Good one.
What's wrong with mutating the argument??
I agree with the first bit ;)
That sorted it!
I've never had to use that argument before. Worthy is further investigation!
Thanks.
Did you know: you can provide an optional second argument to
reduce
as the initial value?This is only a problem if you do not provide it.
I am able to pass all except one test.
I receive the following error message:
I have tried an if statement to return 0 in the event on an empty array before reducing but still get the same...
Any help appreciated.
improve your algorithm and try again ;-)
Process was terminated. It took longer than 12000ms to complete