Why are some test cases hidden !? | Sololearn: Learn to code for FREE!

+5

Why are some test cases hidden !?

It can be a bit difficult to solve the problem in code coach, without actually knowing what is worng ?!?!

5/26/2020 7:26:29 AM

Ankith M Kashyap

16 Answers

New Answer

+2

I agree with the poster. IF the instructions are clear this makes sense. BUT I have had several challenges where I met all the conditions in the instructions and fail a hidden test... how are you supposed to fix that? We are learning things here - so we do not know every bit of syntax and little tidbit that it could be without something to guide us there... In real life it does what it is supposed to, there is nothing visibly wrong. This does not help me debug ( which I don't mind IF I am not meeting a condition I know about!), it just pisses me off. If you have test cases they either need to be clearly noted in the instructions or some hint given somewhere. While I agree this slows down cheating, all people have to do is google the code and use that instead so anyone claiming it is all about reducing cheating has missed the mark. It is just making it harder for those of us trying to learn. You need to have an idea of what to look for before you can hope to find it! Sounds like sololearn needs a different check to prevent people from just making x == value cheats.

+8

If all the test cases are shown then the person can just write that if the input is 'abc' then print 'cba' and can get all the cases correct by just using 'if' statements I hope you understand

+8

Hidden test cases helps us develop the habit of thinking more like a programmer. Programming requires broad thinking, taking into account multiple scenerios that might occur after a software launch. This ultimately helps us for improving our thinking that we need while working on real time projects.

+3

But there are some cases where it would be hard to figure out what has gone wrong !! In that case atleast a small hint kinda thing would be great !

+3

That's why sololearn has made available a feature of discussions where you can ask hints of solutions from other people or maybe the whole solution....

+3

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.

+2

Ya that's true it's a clever design 😂😂

+2

Seriously true, awesome one SoloLearn

+2

If the test cases were to be unlocked, people could just cheat and make output based on the input, but not much coding.

+2

I just wish you could see the test cases when you get them all right

+1

Use the search bar true

0

i see why they do it but if you got all the test cases correct why not let us see them.

0

Bryan check the ticked answer by Iron Man

0

Ya even that's cool

0

M. Aamir Shaikh and Namit Jain [INACTIVE] Yes, but if we code all of is required in the case, there is another scenario.

0

Very true Patrick Frank , frankly said even I was thinking the same but couldn't convey..! Thanks man..!