+ 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
7 Antworten
+ 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
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