Ad
  • Custom User Avatar

    This is the design of the kata, there is only 1 exception to throw though, and the conditions of each are specified. This is a much better kata design than a lot of those which prompt users to return -1 / return "invalid string" as returning multiple types is bad practice.

    The only thing that one might be nitpicking is different condition should throw different Exceptions for debugging purposes . But since this is not a production-based coding foundation, I do not see much of an issue :-)

  • Custom User Avatar

    this was fairly common among solutions I scrolled through, so, yes, this is now tested for

  • Custom User Avatar

    Isn't this true for all kata? "If you don't know how to solve the kata, then you won't be able to solve it!" That in itself doesn't make the kata bad.