+ 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 ?!?!
17 Antworten
+ 5
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.
+ 11
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.
+ 9
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
+ 6
I just wish you could see the test cases when you get them all right
+ 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.
+ 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
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..!
0
Some cases are hidden so that they can be pretty certain you actually solved the problem instead of just writing an if else statement that gives the expected output based on the given input without understanding what you're actually supposed to do, and I get that. What upsets me is when there are only hidden cases, meaning I can't even tell if there was an error with the code that prevented it from even running (which is likely, I'm trying to learn a whole new language when I'm using Sololearn), in which case I would really like to see what the error was and where it was, or if my logic for solving the problem at hand is just invalid, in which case seeing what the actual output was would be helpful in determining where I went wrong. In either case I'm given absolutely no feedback besides a simple "WRONG!", leaving my scratching my had as to why, which really does not help me learn anything.