Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    8kyu katas are indeed very basic ones so it is logical not needing to handle any invalid input, therefore the output format. Otherwise the description should state explicitly how to handle invalid inputs. You may be right that using Result<T,E> is idiomatic, though in such cases many katas expect an Option.