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.
Well, this is odd - I just ran the algorithm the kata uses with those parameters and your answer is correct. I have no idea what's going on.
If you look at the description carefully, rules can be of any length equal to an odd number (1,3,5...). Your solution assumes that rules are always length 3, thus failing the tests with different rule length. Try again!
Rewrote with hopefully more clarity; let me know if there is anything else to fix
I'll give it a once over
Sure
Made clearer in the description.
Random tests added
I find that this kata does no explain clearly enough what it wants, and that the fixed test cases do not cover all the cases the code needs to cover.