Ad
  • Custom User Avatar

    No. It's your code's problem.

    Next time raise your question as a question and not an issue 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.)

  • Custom User Avatar

    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 ;)