Skip to content

Kata bad algorithm #2955

Answered by hobovsky
Alexenon asked this question in Q&A
Discussion options

You must be logged in to vote

In general: yes, if your solution is performant, but reference solution is bad, then tests will time out and you will not pass. Such kata did happen, and probably some of such kata still linger somewhere in the library. But on the other hand, I don't think that currently kata like this are a significant problem.

Some details:

When a user attempts a kata, on Codewars server a short-living Docker container is spun up and tests defined by kata author are run. It's not really relevant for the test runner what tests are exactly. They can be anything what kata author comes up with. It's not relevant for the runner if tests use a reference solution, and how fast they are. All what is important i…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Alexenon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants