LEARNING OUTCOME
Candidates must know what to do when the compiler says 'Wrong Answer'.
If while taking a coding test
The test cases say 'Wrong Answer' after you have run your code, any of the following could be a possible reason:
You have incorrectly interpreted the question and the logic used in your code is incorrect.
You have not correctly debugged your code and your code still contains bugs.
You have missed some corner cases of the problem statement, hence, all the test cases are not passed.
You have used incorrect syntax.
You have not used the brackets correctly.
The indentation is incorrect.
You have added unwanted print statements inside the code, which is altering the output.
Your code has passed all the Sample test cases. However, it could not pass all the hidden test cases successfully.
β
β
Note: You can toggle the custom input button below the code editor to enter a custom input, based on the input requirements of the question, to debug your code.
β
β
Read More Understanding WeCP's Test Environment