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.
This comment is hidden because it contains spoiler information about the solution
thx for reply man! its help me so much : )
To convert it into a number type.
That's the starting value for
reduce
. In this case, it's a sum, so you want to start at0
and then add to it.Looks elegant but it's actually pretty bad wrt performance and it will result in a stack overflow by a certain range size. A new execution context is created for every single value in the range.
It'd be more suitable for a functional language.