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.
Yes i saw thanks!
uh, I specifically added a note about mutation of the input when I approved the kata but the author lost some changes when he added his BF version.
@RNOH: I corrected the description, adding language specific blocks
So you are doing s = ...
The idea is that you dont mutate the input, which will be one of the errors you will get with this while code testing. I think you would likely also timeout with the [::-1] reverse method?
I agree with the comment about the instructions being unclear but will accept the challenge to not use pop - as that was part of my solution. Thanks for feedback everyone.
.... but the instructions tell us to remove them : "Remove the first and last element from the list S" so in my opinion the instructions are not clear
Dont change s (the input list)
well, that means you're currently "mutating the input" while you shouldn't... ;)
=> don't use pop/insert/append, or stuff like that. A bit of googling might help too.
I'm getting the 'don't mutate the input' error for pretty much all the tests. I don't understand what that is testing for. Can you explain that please?