Ad
  • Custom User Avatar

    solved by OP, closing

  • Custom User Avatar

    Read carefully the error message you get, the answer is in there. It's a pain to dig into that stuff (moreover in java...) but you definitely need to learn how to extract useful information from that.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Default User Avatar

    Hi. It's a problem with your code, and not KATA itself.

    Before posting issues, have a look in description to see how many times it's been completed (in this case, 3673 java completions). This is a good indication that tests are correct.

    When you hit submit, there's more random tests run that you can't see, but you can print the inputs with System.out.println(Arrays.toString(array)), for example.

    Note that array isn't always with 3 elements. Sometimes it's 2 numbers, sometimes 5.

    So, no, your solution is NOT correct, but I can't really say much more without seeing where and how it fails, or without seeing your code...