×

 6 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. answered 28 Nov, 02:27 1.1k●1●8 accept rate: 10% TIL "finding where it is going wrong" and "making it correct" aren't synonyms :D (28 Nov, 06:48) ducpro6★ LOL :D I wanted to say "how to make the same solution correct and get AC somehow". Sorry for wrong choice of words :D (28 Nov, 07:01) 1 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 :( (28 Nov, 07:14) ducpro6★ Happens :D . 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. (28 Nov, 07:21) 2 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. (28 Nov, 07:31) ducpro6★ 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. (28 Nov, 07:57) showing 5 of 6 show all
 3 Agreed. I don't mind people asking for help, provided they: - link to the problem - link to their code submission - explain how they intend their code to work (describe the algorithm) - describe the problems they have - only quote code snippets they are specifically concerned with, and - make sure that any such code formats correctly in the question. answered 26 Nov, 23:18 5★joffan 914●8 accept rate: 12%
 0 Yeah, well said They should debug their code for atleast basic test cases. I have seen a lot of code today failing in just basic test cases I don't know why this happens either they are getting problem wrong or they just don't want to understand the problem before implementing. First you should try to understand the problem correctly then try to implement. I am not saying we don't want to help, we want to help but you also have try to do your help by yourself. answered 26 Nov, 21:03 5★admin5 226●9 accept rate: 18%
 0 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 :P , PROC18C(Awkward pairs) answered 27 Nov, 21:37 -8●3 accept rate: 0% I have added a new answer to your original post. Hope you find it helpful. If not, feel free to ask there. (28 Nov, 02:54)

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

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

1.3k19
accept rate: 26%

(28 Nov, 10:08)

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.)

(28 Nov, 13:16)
 0 Every programmer and developer should aware with STRESS TESTING. answered 29 Nov, 00:42 2★sapjv 61●3 accept rate: 0%
 0 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. answered 05 Dec, 01:19 44●2 accept rate: 50%
 0 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 answered 07 Dec, 08:19 0★vinodl 1●1 accept rate: 0%
 0 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 answered 07 Dec, 08:19 0★vinodl 1●1 accept rate: 0%
 0 chup bsdk mc answered 08 Dec, 15:08 2★vt1809 -3 accept rate: 0%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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:

×71
×31
×31