Can people PLEASE stop asking others to look at your code and help you find the error?

I completely agree too , people just tend to ask for help without debugging or even trying to read others solution. Its posts like these that just take up pages on discuss and proper questions are sidelined hence.
I asked this Question a while back Proc18c But it had no answers I tried to look for solutions couldnt understand any and hence posted this question. There were no answers but many people didnt get to see it either because of the " stupid wa in my code ".Its just frustrating at times . Thanks @ducpro for posting this.
PS :- If anyone could please answer this it would be nice @joffan specially :stuck_out_tongue: , PROC18C(Awkward pairs)

I think the main problem arises when the coders start thinking that their code can’t go wrong. This used to happen a lot in my earlier days of programming. Instead of finding why it is going wrong I focused on how to make it correct and give me points.

Let me tell you, do not ever trust your “intuitions” in algorithms. The solution is either correct or incorrect in competitive coding. There is nothing like “almost correct” solutions. Beginners, please focus on proving the correctness of your solution.

6 Likes

I agree with you guys even I face these issues when I try to help people on discuss.
And mostly people who do not use this forum much, do these mistakes and eventually no one helps them.
And hence it is tough to make new people follow/understand these rules and problems

I need a help if anyone can help :

#question link : PDELIV
#link to my query : LINK (Don’t worry , it’s not link to my solution directly XD)

Every programmer and developer should aware with STRESS TESTING.

This site was made exactly for this purpose - codereview.orgfree.com.

As far as I know the development was stopped because of the lack of resources and the entire backend was in php. But I also read in some post that the developers were also planning to write the entire web application from scratch again with java backend and this time not just limited to codeforces users :D.

1 Like

i believe that everyone asked for their code review from someone and before asking for suggestions they must ask and think themselves about their solution and how did they get there and is it write or wrong based on problem they are solving and code must be clean so that whoever helping you understand the problem first

i believe that everyone asked for their code review from someone and before asking for suggestions they must ask and think themselves about their solution and how did they get there and is it right or wrong based on problem they are solving and code must be clean so that whoever helping you understand the problem first

chup bsdk mc

That is one of my biggest headaches. I just dont know how to make new users goto rules and tell that “In case you want help in your code, give a submission link and describe your logic.” No one wants to read rules :confused:

1 Like

For me too.

I have seen many people just pasting their codes and asking to debug/find a test case to fail solution or explain the solution which is explained in the editorial itself.

1 Like

I have added a new answer to your original post. Hope you find it helpful. If not, feel free to ask there.

TIL “finding where it is going wrong” and “making it correct” aren’t synonyms :smiley:

LOL :smiley:

I wanted to say “how to make the same solution correct and get AC somehow”.

Sorry for wrong choice of words :smiley:

Pretty sure I’m guilty of that with November Challenge’s RECIPES :P. Attempted random bits and all types of ways in order to try and get just that 35 points. Failed though :frowning:

1 Like

Happens :smiley: . Last year there was a very hard problem, but its brute force recursive solution was a simple recursion. Due to bad choice of input, it allowed precalculation of solution.

Few people ran the recursion overnight to precalculate and that gave AC and by AC I mean perfect 100. But, in this case it was a bad problem IMO.

Reminds me of what I did in a contest a few months ago XD. The task was to calculate number if non - repeating walks with k steps. I still don’t know how to do it, but since the limit was k <= 29, I just backtracked to find the answer. The contest was 3 hours, and my backtracking finished in 2.5 hours :D.

2 Likes

Happened with me recently. It’s tc are weak. My one soln passed some tc and other passed tc which failed on first but tle/wa on some tc. So, Possible option for me to correct it or choose some it else based on tcs and use both fns to get AC. I made 1 submission/75 sec to binary search on tcs and get AC.

Its TLE in only one subtask and not wrong answer

Can we do this if someone has reputation less than 50 this means he/she new to this community so when they try to ask some question, we can show a quick guide to them so that they can understand what is the proper way to ask a question and once the reputation becomes greater than 50 then no need to show quick guide.
Ask about this @admin if it can help :slight_smile:

I think @vivek_1998299 said that the TL was quite strict and that his solution using set failed. Try replacing it with a vector which is kept sorted. (Since deletion of lines was not supposed to happen afaik, the bad lines were just not inserted in first place.)