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.
Does not work properly when a negative number is given
You could also do (0...number) instead of (1...number)
This comment is hidden because it contains spoiler information about the solution
Interesting! I was not aware of the range syntax with 3 dots, where 1...n exludes the end of the range.
This comment is hidden because it contains spoiler information about the solution
O my love. So beautiful
short and pithy,easy to read
This comment is hidden because it contains spoiler information about the solution
last
is O(n) anyway, so whether that's inreverse
or in something else doesn't really matter.(If I'm wrong, please call me on it.)
lol forget that already its self xD
I am of the same opinion :)
This comment is hidden because it contains spoiler information about the solution
I believe that without self it would not know what iterable object it was iterating over.
So without specifying 'self' it just forwards it to the existing upcase method?
The entire list is not reversed due to laziness. Unfortunately, I cannot assess to what extent the optimizer discards the overhead...
Loading more items...