• It's on fixed tests, test number 7 vs number 9. I would like to understand why test 7 with tag p doesn't start with new lines and spaces but the test on line 9 with the title tag starts with new lines and spaces, once again I am on Java.

    Thanks in advance!

  • Is this a random or a fixed test? If a fixed one, exactly which one?

    Please follow the Troubleshooting Guide. ( https://docs.codewars.com/training/troubleshooting ) I don't know Java and I don't know which questions to ask there, but if you post the exact failed test text I might still be able to point out possible problems.

    But please give me something to work with.

  • Thanks for your reply!

    There are on the expected side.

    I am on Java, please let me know what other things need to know happy to provide.

    Waiting for your feedback!

  • Are those newlines in the input or in the expected output?

    Also, please follow the troubleshooting guide. It tells you to mention your language, and quite a few other things, that are useful and often necessary to know. Help us help you!

  • I don't understand the test cases, how is the title tag has two new lines before it but the p tag has just one.

    "\n \n

    \n Title\n \n.....



    \n Lorem ipsum dolor.....

    Thanks for your support in advance!

  • It should. Creating kata is an endeavour with a lot of pitfalls, and very little room for error when pushing Publish.

    There is a lot more documentation now than four years ago, but it's still not for the faint of heart.

    However, consider what you are doing: you are creating content that is then immediately part of CodeWars. The quality of that content had better satisfy high standards, or before you could blink your eyes CodeWars would be a mess. There is some room for improvement after publishing, but not a whole lot.

  • What a wholesome thread here. I haven't created any kata and this thread kinda scares me :/

  • The Wikipedia article on trial division has an explanation. Once you've done it a couple of times, it becomes second nature. There are a lot of kata on primes ..

    Doing a multiplication is cheaper than taking a square root.

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

  • I hate that you have an undeclared variable in your testing code. I also don't like that you had to steal a solver's solution because your own was too slow. Combine that with a task that does not really add anything new and interesting to CW, and you have my vote.

    Please note I don't downvote everything ( though my standards are high ), and I may very well be a dimwit and a complete moron, but I still don't like to be called out on it.

    Write kata with an interesting premise, preferably not completely artificial, where interesting and elegant solutions are possible, with a good description and testing code as readable and as maintainable as possible, and you will have my upvote. Here, you scored about 50% on that, and it smelled like a duplicate.

    Nobody ever said writing good kata was easy. Also, creating kata is an entirely different matter than solving kata; new kata are ( rightly ) held to much higher standards than solutions.

  • This is definitely one of my most favorite katas.

  • typical CW ~~

  • Loading more items...