Ad
  • Custom User Avatar

    Hi patrick :) I solved your kata and I was thinking it would be even better if you add some random test cases cause now some users could just hard code their values in the function and succeed.

  • Custom User Avatar

    Thanks for pointing that out, I've updated the description accordingly. I chose to exclude the end of ranges for practical reasons.

  • Custom User Avatar

    Yeah ) Still, excluding the end of a range of discrete values is usually more convenient. It should probably be explicitly stated in the description, though.

  • Custom User Avatar

    Your solution seems just fine, it passes all tests when I submit it. Please try again later - sometimes codewars engine fails. It happens very rarely though.

    Please try to submit again.