0

In code coach why are test cases #3 to #5 hidden?

7th May 2023, 8:47 AM
Rainnn
Rainnn - avatar
5 Antworten
+ 11
Hasnain [ACTIVE CHALLENGER] , > regarding test cases, pro-members see the same as other members!
7th May 2023, 10:34 AM
Lothar
Lothar - avatar
+ 9
It is done so that you cannot adjust your code to accommodate the five test cases, but to provide a general solution, the correctness of which is tested by the test cases. Otherwise, you could just write one solution for each test case and be done with it. That is not how it is intended to be (neither how test driven development works).
7th May 2023, 9:31 AM
Ani Jona 🕊
Ani Jona 🕊 - avatar
+ 8
Some test cases are hidden for everyone so noone can cheat to solve challenges.
7th May 2023, 9:54 AM
A͢J
A͢J - avatar
+ 6
In any Code Coach task, only the first two cases are open IIRC. The rest are always hidden. I'm guessing the hidden cases are there to stimulate solver's creativity and curiosity, to open one's mind to possibilities and try their ideas on to try and beat the hidden cases. For actual reason why, you might be better off to ask SoloLearn admins.
7th May 2023, 9:31 AM
Ipang
+ 2
You need pro membership to see hidden test cases
7th May 2023, 9:40 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar