Ad
  • Default User Avatar

    @dansel I get your point, you can approach the kata in whichever way you want as long as it's not forbidden. But the problem is your solution is voted as best practice, which certainly isn't. That's why people protest.

  • Custom User Avatar

    Thanks for your reply.
    Since speed is not mentioned in the kata description I did not care about execution time.
    It's a 7 kyu kata and it's "fast enough".
    This solution is KISS and easy on the eyes though.
    One could of course implement faster solutions with "fail fast".