No, providing the test cases restricts our thinking as in which condition our code will fail.
If you are really in a need of test cases generate it yourself. Write a script which will generate random test cases for your program and test your code and figure it yourself what should be the result of those cases.
This method will really help you a lot, also brainstorming for generating your own test cases will help you to develop a better understanding of failure situations.
Also remember usually our codes fails on edge cases so remember to run your code on randomly generated edge cases to test the result.
I donât understand this reason! Just think of the situation when you have 150-200 or perhaps even bigger lines of code in your programme and you expect to sit for days to find a corner case! Then why donât Topcoder cover this so called âprecious dataâ. If Codeforces and Topcoder can give the test cases then why donât Codechef also give! It is time to change this rule!!
i agree with nsghumman, if i have complete different algorithm then looking at someonesâs code and editorial doesnât help and after the contest is done there is no harm in revealing failed test cases.
Guys please provide the test cases it is very important to know where the code is failingâŚThe thing about coding is that we learn about the mistakes we make and correct ourselves.Without knowing the test cases everyone is bound to make a mistake.The novice programmers donât get a chance to correct themselves and make lots of mistakes in the future it is my sincere request that you provide the test cases where the code is failing at least in the practice section of the web site.That will make things much easier.
The site administrator is a dumb person. For 4 years people are telling but he doesnât do anything. I think he doesnât want to change anything good in his (stable) website. He doesnât want to introduce any new thing and he doesnât need to change because codechef is already an established site.
I am really glad to see that codechef doesnât reveal the hidden test case even in practice session. Definitely it is right that it will kill the curiosity of debugging your code more and more and make to generate random test cases again and again. Other sites provide test cases like hackerearth, hackerrank etc, but these one makes you dumb and doesnât make you think more enough like in codechef! I still remember the time when i wasted the whole day for finding the one corner test case in which my code was failing!.. but at that time i really enjoyed very well!
I joined this site today looking forward to trying the problems, I find it deeply disappointing the totally inadequate attention paid to providing test cases. I have no interest in carefully generating masses of my own test data, hardly the point of this site, nor Iâm interested in playing guess the bug. Having implemented many encryption algorithms myself the idea of doing this without proper test cases is laughable. I wonât be attempting any more problems here until this issue is addressed.
Well, you must appreciate that every site has its own method and approach. Codechefâs is not providing the exact test cases, but it does provide every solution.
You may not appreciate it now, but guessing the bug yourself is very crucial in becoming a successful coder as you can give your code a new shade of accuracy with these skills.
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.
@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.