Is it possible to view the hidden test cases for the tasks | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it possible to view the hidden test cases for the tasks

18th Jul 2020, 12:32 PM
Ibitoye Ayomide
Ibitoye Ayomide - avatar
9 Answers
+ 7
And the reason is that if all test cases are visible you will somehow make your code to give that output.
18th Jul 2020, 12:36 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 4
No it is hidden for a reason.
18th Jul 2020, 12:34 PM
Ćheyat
Ćheyat - avatar
+ 3
In this case, you should learn basic software testing concepts : https://youtu.be/T3q6QcCQZQg Learn about Edge cases.
18th Jul 2020, 12:47 PM
Gordon
Gordon - avatar
+ 2
You have to reread the task, reconsider your code, test it with your own inputs and try to figure out what may be wrong with your logic. That's something you have to learn anyway, if you want to program. You can share the task plus your attempt with us, though. Maybe we can help you figure out what's wrong. Also, many former posts discuss certain recurring problems with the tasks, so maybe you just need to look around a bit in here.
18th Jul 2020, 1:53 PM
HonFu
HonFu - avatar
+ 2
If the test cases were to be unlocked, people could just cheat and make output based on the input, but not much coding.
1st Nov 2020, 9:51 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
+ 1
No it's not
18th Jul 2020, 12:33 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
Thanks! I ve been on a specific task for sometimes now and I can't seem to get the hidden cases right! And it's difficult to know how to solve it especially when I don't know why!
18th Jul 2020, 12:36 PM
Ibitoye Ayomide
Ibitoye Ayomide - avatar
0
It will be a kind of cheating if hidden test cases are visible although you have no such intention but test cases are made to approve your code running successfully.I hope you got the answer.
19th Jul 2020, 4:45 AM
shubham kumar
shubham kumar - 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:31 AM
BRYAND CHE
BRYAND CHE - avatar