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.
We can criticize the solutions, but actually the problem is with the Kata: there are no test cases for the negative case. Yes, it's easy to slip through on this, but that's why the tests should cover all cases, not just the happy ones.
That is where everybody goes wrong, but you are right
After pondering your reply and playing around in python with this, I realize my less-than-elegant solution would fail too. Thanks for bringing this up! It's the kind of gotcha that can slip through a simple reading. Duly noted!