Clash of Code Submission issue

Hi, During many of my clash of code games, I pass all the test cases but when I submit the code, I get a score below a 100%. I am unsure why this is occurring and has been some what irritating as I solve the challenge the fastest but I do not get a 100% even though I pass all the test cases. I was wondering if I could understand why and if there is a way to avoid it. At your convenience, if you could let me know it would be greatly appreciated.

Your code has to pass both the visible test cases and the invisible validators upon your submission of the code. As your score is based on the validators not on the test cases, you will score <100% if your code is not general enough to pass the validators.

Note that the validators are in most cases different from the test cases. And the test cases are supposed to have sufficient coverage in order for you to have an idea of how to write a code general enough to pass the validators. No guarantee that every clash is written well, though.

3 Likes