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.
That's your point of view. Some could say it's to find an easy to maintain production-like piece of code. Others may want to play code golf and find the shortest possible solution. Others to find the most efficient one.
The point of these puzzles is to practice the implementation
Nice solution. We can skip the +1 as the last number is always in the array.
(I saw this in another solution ... and yes, it made total sense.)