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.
The error in which a random array of values doesn't return the array without the last value. I'm not sure what's going on under the hood of the codewars random array testing. I can't get any of my own test code to return the error given the same input.
This is what I did, and I think I understand that it's better to return a shallow copy that mutate an existing array. However, I don't understand why the error happens. Can someone explain?
The only thing standing between me and that 200k job is being able to spell 'function' correctly every time 😂