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.
I've checked the control function and also passed the kata and it works fine. I see you've solved the kata, you can check it for yourself too.
Your solution modifies the input so the reference solution gets an empty array... I modified the tests to prevent people who modify the input to pass. Thanks for your post. (Note: it is considered bad practice to modify the input; if you want to modify, do it on a copy.)