Stop dumping your code in discussions the way you rushed to submit them

Unless your goal is to provide solutions for others to copy paste blindly, take time to make your code readable and make it well commented clearly explaining your approach. When you go into this assuming that you are explaining to a noob even your own understanding of your solution will become more clear.
Your fancy one-liners and magic formulas are understandable to you and ONLY you.

I am new to codechef but not to competitive programming. I have been doing LeetCode all the time for the past few months. The good thing over there is that there is a separate discussion section for each problem and most people put up codes that are well explained with their time and space complexities.

3 Likes