+ 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.

1st Mar 2020, 8:56 PM
Blinky Sonia
5 Antworten
+ 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 :)
1st Mar 2020, 9:29 PM
Brave Tea
Brave Tea - avatar
+ 1
Thanks for the contribution
1st Mar 2020, 11:35 PM
Blinky Sonia
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?
1st Mar 2020, 9:06 PM
Fernando Pozzetti
Fernando Pozzetti - avatar
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.
31st Jul 2020, 9:30 AM
BRYAND CHE
BRYAND CHE - avatar