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.
I didn't give much thought before posting as issue, what I meant was "I have an issue with the code, do you know why". Last time I posted somewhere else as question and the post got hidden without an answer so I thought the tag was wrong.
Thanks either way.
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.I didn't say the kata or the test is wrong, I'm asking what the problem is.
I have done tests and it works, that's why I asked. You could have minded your own business if you didn't want to help.
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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution