• Custom User Avatar

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

  • Custom User Avatar

    Dude i already read that thing so many times its too vague.I need actual help from someone.For me the code just kept running both test cases at once which outputted 16.
    Test case 1 = 16 , Test case 2 = 456,
    It kept outputting 1+6+4+5+6 = 16.
    It overrode the first test case and just submitted the solution for test case 2 to test case 1.Only when i deleted test case 2 and ran it individually did i get a correct answer but i cant do that for the actual attempt so i guess my method just doesnt work for these test cases.

  • Custom User Avatar

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

  • Custom User Avatar

    Guys can anyone help me as to why the kata seems to running boht test cases at once?My code is fine on netbeans but with the test cases it has a problem.

    Netbeans-Test case : 16 , Output = 7
    This Kata-Test case : 16 , Output = 15

    I really have no idea why its doing this but i can assume that this is becuase codewars might have a few buggy katas.

  • Custom User Avatar

    Nvm i already got the answer.I kept getting a StringOutOfBoundsException so i just didnt use arrays entirely.Thanks for your time and concern man.

  • Custom User Avatar

    Doesnt really help me much.I did what they said and im still getting an error but when i run the code on netbeans its fine.

  • Custom User Avatar

    Problem with the Random Input.i cant seem to figure out what that input is which causes an error.Im pretty sure my code serves the function well enough just this one testcase.