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.
If people dont cheat, that is...
my solution has less lines (which isn't always better) and 1 less array in memory, but you've done the 2 most important things.
1.Correct Results
2.Readable and easy or another developer to understand your code.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Gaming if fun too
You're right
Learning is fun. Why cheat.
The key to this technique is to pass in the Math Object as the first argument instead of null of apply() so that the "this" value is set appropriately. apply(Math, list);