which language should I use for competitive programming? Is it ok if I use python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

which language should I use for competitive programming? Is it ok if I use python?

I am a beginner and want to go for competitive programming but not clear about which language to choose.

7th Mar 2020, 1:08 PM
Manoj kale
Manoj kale - avatar
6 Answers
+ 6
I would recommend learning C++ for competitive due to same reasons written by Arsenic, python is good when too large numbers are involved but in most contests constraints are made to not give any unfair advantage by language. Also, it is easier to get C++ solutions as most of competitive programmers are using C++ only(probably around 80%).
7th Mar 2020, 3:35 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
Python is generally not recommended for competitive programming as it is way slower as compared to C++ and java. C++ is by far the the most popular language of choice for competitive programmers across the world because of its speed and powerful standard template library
7th Mar 2020, 1:16 PM
Arsenic
Arsenic - avatar
+ 2
People who suggests c++ really did not think it through ! If you are a beginner and try c++ you will just ended up quiting or it will take years to really master the language. Python has is cons, but when it comes to understanding coding and problem solving, python is the best. Once you master one language, sure, go learn java or c++
9th Mar 2020, 11:07 AM
Gaëtan Gr
Gaëtan Gr - avatar
+ 2
Gaëtan Grond that's not always the case. My first language was C++ and did not found any difficulty in learning it.
9th Mar 2020, 11:16 AM
Arsenic
Arsenic - avatar
+ 2
It varies from person to person. You should try any of these and after trying for few days. Select one in which you are comfortable.
11th Mar 2020, 6:34 AM
Vishal
+ 1
The languages you can use for competitive programming are Java, C++.
8th Mar 2020, 2:34 PM
DevX