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(n)
should be clever or best practice. Not this! This is awful solution.You're perfectly correct. I didn't anticipate that approach when I designed the test cases, I'm afraid, and since the kata is published, I can't change or add them now.
The chance of a random test case catching those solution is also rather small, unfortunately.
From another perspetive, they actually solve the problem as stated in the description, even if that was not my intention. :-)
Thanks for the feedback. :-)
(You have a tight and readable solution, too, btw. Nice!)