Ad
  • Default User Avatar

    I have run my solution internally and it seems that every test returns the correct value (Java), but on the server side my solution will not pass a random test. I printed the input variables and tested many times, but in CodeWars it returns some exceptions (like the index out of bounds) or an empty string for example, even when on my side it did not. I do not know what I am doing wrong. Any suggestions? Are there any conditions I do not know about it? I am confused.

  • Default User Avatar

    Thank you, tried last evening and it worked !!!

  • Default User Avatar

    Me either, tried diffrent approach - works in Ide, throws runtime error here.

  • Default User Avatar

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

  • Default User Avatar

    I had the same issue - i pressed 2 times submit final button and the second time my solution was accepted, but I did not change anything in my code - strange - repeated two more times - same result.

  • Default User Avatar

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

  • Default User Avatar

    Thank you.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    Now it appeared , I did not know it works this way. Thank you. Good lesson for me . Definitely i will learn from this approach. Thak you again, for your help.

  • Default User Avatar

    Excuse me, but I don't know how can I get access to your answer. Never tried this before and I am confused. Just give me a suggestion what should i look for and I try ti fix my code, because so far I can not spot any mistake (compared input/output and both look the same for me)

  • Default User Avatar

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

  • Default User Avatar

    I have failed random test , but looking at the result I dont understand one thing - How come "Yoshiro" can precede "Nobuyuki" in the result. Am I missing something? "Yoshiro" - 7 letters, "Nobuyuki" - 8 ltters. Am i wrong?

    arrays first differed at element [12]; expected:<[Yoshiro]> but was:<[Nobuyuki]>

  • Default User Avatar

    passed all test except the test with negative values.Any suggestions?