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.
No. It's your code's problem.
Next time raise your question as a
question
and not anissue
when you have one.There's a bug in your code. It should be quite obvious if you look at that failed test case properly, so it's left for you as an exercise ;-)
(Also, can people stop being so condescending as if they're 100% sure it's the kata's fault? Because in like 90% of the case it's the contrary, which "my working code cannot pass your tests" is seldom one. Also, most of these "issue" comments are unhelpful to anyone who's trying to resolve any possible issues.)
I do agree with you that this isn't best practice. However, "Clever" is, according to CW, a code that you wouldn't necessarily use in production. In fact, I refactored this one to this
When I write code here, I let myself go, without worrying about readability much. And I think I'm not the only one ;)