You are not logged in. Please login at www.codechef.com to post your questions!

×

A question to Admin

when you guys auto validate a solution against some test cases, can you also please.. mention test case for which the submitted code failed? I have seen this on other sites and it really helps us understand when our code fails, would you please at least consider this suggestion?

asked 27 Jul '17, 15:48

silverprince's gravatar image

2★silverprince
222
accept rate: 0%


I know it's really hard to practice, but on the other hand it motivates us to solve the problem by our own without any external help. If you enjoy solving some problem, even if it helps, you should not see the editorial or the test cases for which your code fails. That's like giving up and is not acceptable if you wanna solve the problem.

link

answered 27 Jul '17, 18:22

ista2000's gravatar image

4★ista2000 ♦
2.4k723
accept rate: 20%

2

seeing editorial is totally different than seeing a failed test case :)

(29 Jul '17, 08:29) silverprince2★

i agree with @drjaat sometime it's just too frustrating to know where the code is falling. Besides every other online judge. provides this platform. One thing we can do that we only see the test cases after some particular submission of WA or RTE (not including TLE) , This way we can ensure the user tries enough before seeing the editorial

link

answered 27 Jul '17, 21:35

sonu_628's gravatar image

4★sonu_628
4208
accept rate: 10%

"Enough" is never enough. I have heard the same from @kevinsogo and @ania. What they said is that they try a single problem for even more than a couple of months. So, don't spoil the problem, think about more than one problem at a time and think about it even while you sleep or travelling or something. When you wanna practice try debugging or thinking, or try to find some new topic to learn and implement the algorithm you learnt.

(27 Jul '17, 22:58) ista2000 ♦4★
2

I will say here, that different strategies work for different people. In the end, the thing which suits your style, your time constraints and optimizes your result the best should be chosen. I wont discuss it much since this thing is...objective/too-argumentative. I will say, a lot of experimentation should be done to see which strategy suits you the best. Sometimes a balance between two proves fruitful :)

(27 Jul '17, 23:06) vijju123 ♦♦5★

I'd rather follow what the better rated coders advice :P

(27 Jul '17, 23:12) ista2000 ♦4★

but sometime we are unable to solve the question due one or two test cases if we will get to know about test we can solve the problem

link

answered 27 Jul '17, 20:05

drjaat's gravatar image

2★drjaat
267113
accept rate: 6%

That's a fallacy in our thinking. I have been a victim of that many a times. Even if our code fails for one particular case, its WRONG. Be hard on yourself, that's the only way we can grow. If its wrong, its wrong. Try debugging it. Even practicing to debug is important. You will not be given editorials or shown the test cases during any contest, will you?

link

answered 27 Jul '17, 22:55

ista2000's gravatar image

4★ista2000 ♦
2.4k723
accept rate: 20%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×856
×363
×25

question asked: 27 Jul '17, 15:48

question was seen: 757 times

last updated: 29 Jul '17, 08:29