@vipin16 bro I think codechef people are doing good by hiding test cases. It forces us to think about spoiler cases. If you want to learn by analysing the failed test cases better to practice on hackerrank and donāt say good bye to codechef just feel the signature taste of codechef.
plz tell me whats wrong with my code : CodeChef: Practical coding for everyone
I made solution according to problem ,it works for testcase displayed,but still wrong
I agree with you, that learning is easier with test cases, unfortunately almost no contest page shows test cases, thre are 2 exceptions that I know TopCoder and CodeForces.
@bhampton: There is a frame of reference. We reveal all the solutions of all the problems after the contest and the problems are also moved into the practice section for the users to try at leisure. And you can see otherās solutions too. Check this: http://www.codechef.com/submissions. Revealing test data is a spoiler and short cut to correcting your solution. Its the pursuit of finding the unknown that makes it exciting.
We can also have partial scoringĀ test data on CodeChef. The online judge has the capability. But that does not yet convince us to reveal test data. Ad mentioned before, even in the practice section, we believe that revealing test data is a spoiler.
Even if we dont get partial scoring, providing just the detail like what was the status for each test file would be great help. It gives a hint if we are going totally wrong or somewhat in right direction.
If revealing test data is a spoiler then certainly revealing hundreds of examples of correct code is a spoiler!
Itās so frustrating to as few as one input example from the problem definition. What is one to do when oneās code seems correct but a simple āWrong Answerā message is returned?
Google Code Jam gives you more test data for the āsmallā version of each problem. At least you get to try your code with some data.
This is really a dealbreaker for me. I like the CodeChef site and the amount of problems available, but itās just too frustrating to get such small input sets. Iām moving on.
Not revealing failing test cases during contests is justifiable, However illogical if iām solving problems from problem banks . Spoiler? How? After repeated failing if iām not able to figure out theres no learning its just time spent to waste. As for editorials,LOOK-i have a completely different algorithm of my own and i want to know here i went wrong if i do-THATāS LEARNING.āwhere you went wrongā-thats learning. Editorials are just a way to see the problem through somebody elseās mind and follow their algorithm and techniques. I donāt see it any different from copying others solutions.
BUT ATLEAST AT THE END OF THE CONTEST ,YOU CAN PROVIDE PROVIDE THE PARTICULAR TEST CASE WHERE A PARTICULAR CODE FAILS.THIS WILL HELP A LOT OF PROGRAMMER TO IDENTIFY THEIR MISTAKES INSTEAD OF LEARNING IT FROM EDITORIALS.
I tried nearly 10 to 15 different test cases and it is working fine for each of them.
If possible just let me know the input for which my program fails as I have tried everything from my end.
I only want to know about the input so I could modify my program accordingly.
I wont be able to learn if I keep making the same mistake over and over again. I donāt want test cases during a competition. All I need is one or two failing test cases in the practice section so I can debug my code and see where it is going wrong and see what mistakes I made so that I can rectify it and not make the same mistakes in the future. Is this too much to ask for?
Itās not exciting, itās frustrating. I have a solution to a problem that appears to be the same algorithm as another solution that got the right answer, yet I have the wrong answer. Iāve generated several testcases, but havenāt been able to figure out what is wrong with my code. Without seeing the failing testcase, it leads me to suspect that the problem is with the testcase, not my code. Thereās no way we can check to see if in fact the testcase is wrong as sometimes happens. On Codeforces, for example, someone occasionally spots an error with a testcase, and it gets corrected. Thereās no way that can happen when you donāt reveal the testcases even after the contest.