• Custom User Avatar

    Fixed.

  • Custom User Avatar

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

  • Custom User Avatar

    It also occurs in js

  • Custom User Avatar

    I changed the description and the problem. Is it better now?

    Thanks for the feedback.

  • Custom User Avatar

    Oops. I thought your comment was a reply to mine. I deleted my reply.

  • Custom User Avatar

    If you were to go from left to right, the first two elements that sum to 10 are 3 and 7 at indices 3 and 4, respectively. While the first 5 may have been found at index 1, the matching 5 lies at index 5, which is past the match of [3, 7].

    Basically, you need to return the pair of numbers that both occur before any other pairs. (The last element of the pair [3, 7] comes before the last element of the pair [5, 5])

  • Custom User Avatar

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

  • Custom User Avatar

    I can only imagine the reason being the way Java is converting the hyphen char to an int. If that's assuming a value of -1 for the -, it would be adding a 1 to the beginning of your returned string.

  • Custom User Avatar

    I found an issue with the java test cases as well. The instructions direct one to return false on zero or negative radius, but the default test cases expect an IllegalAgumentException to be thrown.

  • Custom User Avatar

    *Sorry for error i'm italian hehehehehe

  • Custom User Avatar

    I really wish I could help you. While the Kata is mine, I only know Python. The other languages are written by other people and I don't know Java.