Ad
  • Custom User Avatar

    This is out of spec, and is undefined for the problem. What should you output if the expression is true? 0 would be absurd here.

  • Custom User Avatar

    Thank you for the feedback. You're absolutely correct that I made a mistake in saying that the answer should be an integer. My apologies. I've corrected the question statement.

    I agree with you about the fact that some of the test cases aren't realistic, given the fact that the kata is supposed to be questions on a test, but these tests were suggested by previous users to help test the kata more thoroughly.

    I'm not sure what exactly you mean by a hacky string converstion; I did not encounter that issue in my solution. I will gladly make additional changes as appropriate if you have other specific suggestions.

    Thanks for your patience. This is my first kata to author, and I'm still learning, as you can see. I appreciate your feedback.