Ad
  • Custom User Avatar

    @Tsetsi Biserov, yes you shouldn't start your int highestNumber and int lowesrNumber with 0s, that is another common mistake that people do this is kata.

    And that is why there are test-cases for exactly that, as you yourself pointed out.

  • Custom User Avatar

    even though, I did (almost) the same as him and could only reach the solution by removing any solution containing 0, meaning so that with this solution when there is -1 and 0 the kata expects you to return -1 and -1 instead of 0 and -1, and with 0 and 1 the kata expects you to throw 1 and 1.

  • Custom User Avatar

    There's 2 problems with your code: missing import to use Arrays, and then typo 'number'.

  • Custom User Avatar

    I can't exactly guess what programming language your are using.

    Your solution looks fine as far as I can see. So what is the issue you are having? What is the output of the failed test?

    Even if I knew the programming language, I would be too lazy to try and use your code to find out what the issue is, it is much simpler if you just tell us what the error or incorrect output is.

    See also the FAQ for some simple tips on how to debug and ask for help.

  • Default User Avatar

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

  • Custom User Avatar

    Rightfully so. You didn't return anything. Also, please mark your post with spoiler flag if you're posting solutions.

  • Default User Avatar

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