As a beginner in competitive programming, what coding habits should I focus on which might help during timed competitions?

 Competitive Programming is a skill which takes a lot of time to sync in.

Performing good in timed competitions require a lot of practice, which trains your mind to work faster in reaching the desired algorithm.

Here are some habits I would suggest, which helped me during my competitive programming journey:

  • Always read the question carefully multiple times, to avoid misinterpretation of the question and ultimately a wrong submission leading to penalty :p
  • Always use Pen and Paper to crack the logic of the question first.
  • Dry run all the corner test cases you are able to think off, before you start coding your logic.
  • If your code successfully runs on the sample test cases, never conclude that they are enough to get an AC(Accurate) :p
    • Be sure about whether your logic is 100% correct.
  • Last but not the least, practice as much as possible in limited time, practice is the key to success.

What do you think helps the most? Let me know in the comments section 😉


Comments

Popular posts from this blog

how do you get into cybersecurity?’

Sources FOR beginners /university students interested in Cyber Security