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.
Thats what she said
I felt the same :)
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!
O(n) + O(n) = O(n)
This solution has O(n) + O(n) complexity!!
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