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
Great formatting! This is how I solved it as well
Pretty simple problem, just made the mistake of thinking that the last element in an array could be accessed like arr[-1].
Instead it should be arr[arr.length -1]
Really easy to understand, I was stumped on this problem!
soooo much shorter than mine!
This comment is hidden because it contains spoiler information about the solution
Wow. This is so elegant
Great solution! Mine code feels like a mess now. Time to refactor