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.
:O
:/
Why reverse?
I was put off, at first, but then gave it a shot and solved it.
However, I'm not sure if my simple solution is "really correct" or if it just passes the kata tests. For example, the test cases provided "pre-attampt" actually fail for my answer, but I was curious and clicked attempt and my code passed. Either the pre-attempt tests are wrong or overly strict, or the solution tests are incorrect or overly loose.
If you want to ratchet up the difficulty one notch, add a test case with comments in the function definition: