Ad
  • Custom User Avatar

    I can't change the tests anymore since more than 500 CW passed the kata.

  • Custom User Avatar

    Well spotted.

    Change the condition in the first line to v1 >= v2 and it's ok again.

    The kata author should have provided a test case for this, but it seems they did not, and the random test cases are generated in such a way that it never happens that v2 > v1.

  • Custom User Avatar

    Are you modifying the input? You shouldn't do that.