Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Corona Virus Stats (Covid-19)
  • Work with us
  • FB
  • LinkedIn
  • Twitter
  • Instagram.com
Tekraze

Tekraze

Dive Into Technology

  • Guides
    • Developer Guide
    • PC Guide
    • Web Guide
    • Android Guide
    • Music
    • Tutorials
  • Feed
    • Tech News
    • Shared Tech
    • Gaming Videos
    • Unboxing videos
  • Forums
    • Android Apps
    • Angular Npm Packages
    • Useful Site Links
    • Tech Queries
    • Windows OS Help
    • Web Guide and Help
    • Android Os And Rooting
    • Jhipster Discussion
    • Git & GitHub forum
    • Open Source Forum
  • Work with us
  • Toggle search form
  • Trends in Technology Driving e-Commerce in 2020 Banner Image
    Trends in Technology That are Driving e-Commerce in 2020 Tech News
  • The Best Cloud Storage Service Tekraze
    Which is The Best Cloud Storage Service of 2020 [Full Comparison] Tech News
  • Self Driven Startups and Embedded Tech Evolving Progressively in Past Decade 1
    Self Driven Startups and Embedded Tech Evolving Progressively in Past Decade Tech News
  • Docking Stations - The Port Extension you need 2
    Docking Stations – The Port Extension you need Latest tech
  • India wiidens China App ban
    India widens China app ban to Baidu and Weibo Tech News
  • Alphabet of programming ;languages
    The Alphabet of Programming Languages Tech News
  • Hacking of high-profile Twitter users prompts FBI investigation 3
    Hacking of high-profile Twitter users prompts FBI investigation Tech News
  • How to choose the right GPS truck tracking system for your business
    How to choose the right GPS truck tracking system for your business Latest tech
How to start with Competitive Programming ? 4

How to start with Competitive Programming ?

Posted on July 16, 2022July 16, 2022 By Bhavesh Gupta 1 Comment on How to start with Competitive Programming ?

Table of Contents

  • What is Competitive programming
  • When to start ?:
  • Where to start?
  • How to start?
  • Bonus (Solutions)
  • Online Judge:
  • What to do if stuck?

What is Competitive programming

only the word is enough to put a spark in every computer science student’s eyes. It is the latest fad among college students and a need of the hour for developers in almost every domain. In my opinion, it’s a sport.

A person doing practice for competitive programming
A person doing practice for competitive programming

But, When, Where, and How to start, What is an Online Judge ( is it an actual human ? ). These are the first thoughts that come into every beginner’s mind when for the first time he/she dives into this world of competitive programming ( or should I say Multiverse), I will be answering in this article:

Frankly speaking, in India, a person gets to know about competitive programming in the 1st/2nd year of college, and I feel that it’s quite late as compared to the world wherein Western and European countries it is a common subject at school levels.

When to start ?:

As soon as you got to know about it because everyone else you will compete with had already done it before. But till when?
There are two kinds of people out there

  • One who does this for get a job by clearing the coding interviews
  • The other kind is one who just loves doing this as a hobby or as a favorite time pass.

So decide yourself when you want to do it but starting early has always ended up being fruitful.

| Also Read | A Guide for new comers to Artificial Intelligence

Where to start?

There are so many online resources for this and some great books too. Some of them are:

  • SPOJ,
  • Hackerrank,
  • Hackerearth
  • Codechef

But, for a beginner, it is more important to know how to start on any one of these like, what is a problem, where to write a solution, and in which language? Almost each of these listed above supports every popular programming language like C, C++, Java, Python, Javascript, etc. To learn to code for kids recommended geekedu platform.

How to start?

There is a problem statement given that explains the input, output formats, and what functionality needs to be satisfied by the program. You need to submit the program that accepts the input in the specified format and do something that outputs in a given format, only.

Now, coming to that “do something” part I mentioned in the above line.

One needs to think of the algorithmic approach to reach the solution not for just one, but for all and universal inputs. By that I mean think about all possible input domains and then form a strategy common to all of them to reach the specified output. This needs both logical thinking and a lot of practice. Observe the problem statement and compare input and output for some easily thinkable cases. Then go for the corner cases that define the problem.

  • The basic rule to stay in the competition is, Practice and practice a lot.
  • Solve problems in linear order on any one of the mentioned websites.

Bonus (Solutions)

Here is a link to some beginner level solutions to Hackerearth problems that I wrote in the 2nd year of college, after getting a list of errors for straight 3-4 months. Most of them are in C as it was my first programming language and the rest are in Python3, my present language.

  • on the top, every solution has a link to the question statement on Hackerearth.
  • It is possible that there might be an efficient approach to the same question is possible but as I mentioned earlier these are the first thought solutions, which are then optimized by me to clear all test cases.

Now the good part of these solutions is that they use a naive and easier approach, not like the straightforward approach explained in an editorial solution of these. For example, for the problem “PrimeStrings”, I had written a basic, first thought-based solution to it, that a beginner could think of. Instead, when now I look back at it, I feel I could have optimized or shortened the code by using data structures like “set” and “dict”, but these things don’t strike on the first try.

| Also Read | WordPress – Build personal Blog/Site in muinutes

Online Judge:

It is also a program that evaluates your code with respect to given problems and constraints. It already has both the input and output files that will be used for testing. Now when your program is made to run on those input files, it generates some output files w.r.t your code. Now, these are matched with the correct output files, present on the server. Based on this, you get a response that whether your solution was correct or not. Learn to make the online judge your friend and know the error it is throwing at you. It will help in debugging the program.

What to do if stuck?

Whenever stuck on a problem, just don’t give up and keep trying to approach it differently.

  • Only see the editorial solution after trying for at least 10-20 times.
  • Then learn from it, learn the way the solution has been thought of rather than the code.
  • Then start a newer, harder one.
| Also Read | Make music with Programming

Happy Coding!

Content Protection by DMCA.com
Developer Guide, Tutorials, Web Guide Tags:courses, Learning Curve, Programming

Post navigation

Previous Post: 29 Top Free Graphic Design Websites for Graphic Designers in 2021
Next Post: Get The Best Solar Power Gate Openers For Your Property

Related Posts

  • Logo of the programming language ChucK
    A Little Chuck Script for a Pluck Sound Music
  • Backend Technologies - 2018 5
    Backend Technologies – 2018 Developer Guide
  • Linux Terminology basics you need to know
    Linux Terminology basics you need to know Developer Guide
  • How to Encrypt Decrypt Files in Linux Tekraze
    How to Encrypt and Decrypt Files in Linux Tutorials
  • BI Trends to Track analytics Tekraze
    Big BI Trends to Track in 2020 Guest posts
  • Variable & its Scope in PHP 6
    Variable & its Scope in PHP Developer Guide

Comment (1) on “How to start with Competitive Programming ?”

  1. transient lingual papillitis says:
    June 2, 2022 at 12:41 am

    Amazing piece of writing

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Advertisements

Subscribe to updates

Enter your email below to subscribe





Posts by Categories

Advertisements
  • BackEnd Technologies part 2- Databases | Tekraze 7
    BackEnd Technologies part 2- Databases | Tekraze Developer Guide
  • Tekraze Plural Sight courses
    Learn with Plural – Learn with Google Tutorials
  • The Qualities of a Great Mobile app
    The Qualities of a Great Mobile App Developer Guide
  • upgrade windows 7 tekraze
    What to Do about Your Windows 7 PC As Microsoft is Ending Support Guest posts
  • Backend Vs Front End - difference you need to Know 8
    Backend Vs Front End – difference you need to Know Developer Guide
  • Select Ideal Database Feature Image Teraze
    5 Tips to Select Ideal Database for Your Mobile Application Guest posts
  • Sky247 India review
    Sky247 India Review – Best Bonuses Ever Web Guide
  • system integration tekraze
    What are the Types of System Integration? Guest posts

Affliate Links

Sell with Payhip

Earn with Magenet

Sell and Buy with Adsy

GainRock affiliate Program

Automatic Backlinks

Advertise with Anonymous Ads

accessily tekraze verificationIndian Blog Directory

Copyright © 2023 Tekraze.

Powered by PressBook News WordPress theme