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.
You could write "apple" and it would still work
That's what I did... then realised as I hit submit that it can be shortened into one line
I think a reason/scenario for not changing the original array should be given so we know why not to change it. I did forget to account for negative numbers too, so I agree with both statements.
That's very similar to how I did it... Except that you only need to go to integer/2 to make it work