Ad
  • Default User Avatar

    It would be nice if we could actually see the input for the random tests. It's a bit frustrating to not to be able to see the cases where your solution is failing.

    Other than that nice kata; not too hard, not too easy :D

  • Default User Avatar

    This was very confusing. It never really made it clear you had to stop after the newlines, and for some reason you also had to apply an rstrip on each line to pass the tests even though that was never given as a requirement.

  • Default User Avatar

    Not to be mean, but I'm not sure this is the best solution. There have been more concise ways of doing this given below, and using if conditions and returns in the same line makes me uncomfortable.

  • Default User Avatar

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