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.
Mutating the input should have no effects now
Yes, you're right. I used Array#shift with the input array, that's a bad thing.
Copying solved the issue. Thanks!
You are altering the list used by the test. Try to work on a copy or to not use destructive operation like python's pop.
If the solution alter the list (for exemple, in python,
names.pop(0)
), randoms test will fail. Test should provide a copy of the list when it make sense.