We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I am not sure if that's 100% true though. I mean if you look at most of competitive programmers code, you will see that they use short variables etc which may not be readable in day to day life. Also the idea to write code for this very problem is extremely common these days in many coding challenges. There maybe something in the question that you may "exploit". You may not be able to do so, if you are trying to say generalize your problem. I mean since this is a practice problem, I agree with you, but in a real competition, I think one should TOTALLY write code only for that problem in mind, nothing else. Also competitive programming mostly teaches you algorithmic solving techniques. It doesn't teach you how to write good code. If you really wanted to write good production level code, this is not the place for it. If you think about it, most of these problems involve less lines of code. It won't teach you how to maintain huge code bases etc. :D
Day of the Programmer
You are viewing a single comment's thread. Return to all comments →
I am not sure if that's 100% true though. I mean if you look at most of competitive programmers code, you will see that they use short variables etc which may not be readable in day to day life. Also the idea to write code for this very problem is extremely common these days in many coding challenges. There maybe something in the question that you may "exploit". You may not be able to do so, if you are trying to say generalize your problem. I mean since this is a practice problem, I agree with you, but in a real competition, I think one should TOTALLY write code only for that problem in mind, nothing else. Also competitive programming mostly teaches you algorithmic solving techniques. It doesn't teach you how to write good code. If you really wanted to write good production level code, this is not the place for it. If you think about it, most of these problems involve less lines of code. It won't teach you how to maintain huge code bases etc. :D