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.
In the tests, twice I am given an array of [4,2,6]. I fail the first test as expected output is 88, 48 but succeed on the second with output of 48, 48.
I know it's an old question but I would love to know the answer to this one!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Stealing this formatting from now on! Very readable
I think this one is the most readable. Anyone else use a do-while?
super elegant!
This comment is hidden because it contains spoiler information about the solution