Ad
  • Custom User Avatar

    Well, if you wanted to ask a question, use QUESTION tag. Issue means something is wrong with KATA itself - usually wrong tests.

    You could have minded your own business if you didn't want to help.

    How could the AUTHOR of kata ignore a raised issue and just mind his own business?!?!

    I solved this long ago, so I don't really remember the details, but your solution only fails 1 test, and that's because your check for invalid k seems to be flawed. I can only suggest the use of modulus operator, and you shouldn't use p when checking for it.

  • Custom User Avatar

    See at the top of the page: 5525 guys passed the Java kata so chances are that your code is wrong.
    If you want to know where you fail, print the input.