+ 2
Hidden cases
Please how can I see this hidden cases because if I don't see them then I won't be able to solve the problem without seeing where I went wrong Especially when only 1 is wrong.
5 odpowiedzi
+ 1
also if you could see all the cases you could simply write the code to solve those 5 or 6 cases
if case1:
answerToCase1()
if case2:
answerToCase2()
not what code coach wants from you :)
+ 1
Thanks for the contribution
0
Hidden cases are not meant to be seen. Their purpose is to further test your code for issues that you may not have handled.
Imagine you are creating an app which has to deal with names. You create a string with size 10, but then the user has a name 15 characters long. You should have thought about that case.
What code coach test is failing?
0
For an algorithm(steps in solving the problem ) to be correct, it must produce the same output for any given input.
If all test cases were shown it will simply make us write the code with respect to the inputs shown not considering other inputs.