Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Well, if you wanted to ask a question, use
QUESTION
tag. Issue means something is wrong with KATA itself - usually wrong tests.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.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.