Best Language for Competitive Programming

The 3 major languages that people use are C/C++, Java and Python.

Out of these C++ and Java are most commonly used languages in competitive programming(CP). Python is also a good language, but the runtime of python is quite slow. In my experience C++ is a very good language for CP its runtime is very good, it has a great library and not so long syntax. Java is also a good choice. (It depends from user to user).

It would be beneficial if you use C++ / Java as most of the editorials and codes for algorithms are easily available for these (especially C++).

Now that you know a programming language you need to set up an environment to code in. Since writing your code in the submission page is not recommended as you might need to look at the question again and again.

So we write code in an IDE (Integrated Development Environment) or a text editor for code and once the code works as required, we copy paste it during submission.

Like – CodeBlocks (C++)/Sublime Text

(I’d recommend not relying on DevC++ as its last stable release was 3 years ago, and it has not been updated since)


Post a Comment

0 Comments