16 AnswersNew Answer
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.
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
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.
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 !
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....
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.
Ya that's true it's a clever design 😂😂
Seriously true, awesome one SoloLearn
If the test cases were to be unlocked, people could just cheat and make output based on the input, but not much coding.
I just wish you could see the test cases when you get them all right
Use the search bar true
i see why they do it but if you got all the test cases correct why not let us see them.
Bryan check the ticked answer by Iron Man
Ya even that's cool
M. Aamir Shaikh and Namit Jain [INACTIVE] Yes, but if we code all of is required in the case, there is another scenario.
Very true Patrick Frank , frankly said even I was thinking the same but couldn't convey..! Thanks man..!