+ 4
Should I do competitive coding in C++ Or JAVA
15 Réponses
+ 6
Pick the one in which you are better or feel more comfortable in using.
If both are equal then pick C++, just because of it's speed.
+ 5
These questions were asked by many users, so before asking please search about it!
C++ and Java both are good instead of choosing one why can't you do both! And after doing both the course then you will automatically know what do.
Java is the official language for Android Development and you can also Use Java Spring for web application .
If you love games and wanna go in game development then we all need speed so, you can use cpp for it.
In introduction of the language it's shown that what are they use for, All the best!
+ 4
Vansh Wadhwa no you will not. In competitive programming, it's your algorithm which make a greater difference in performance compared to choice of language.
The only advantage of choosing faster programing language is that, sometimes you can get away by implementing a less efficient algo and get correct answer.
But almost all problems and constraints are created such that languages should not be a bottleneck for you (at least in case of JAVA and C++)
+ 4
Arsenic Thanks man. Understood your point
+ 4
Rishav okkay bro...but for competitive coding will regret using java.And if i choose cpp i may have to change the lang in future and then have to know libraries modules and syntax of java again... hope you got my point
+ 3
Thanks man Alphin K Sajan
+ 3
Arsenic i knew basics of both ,butbthe reason i am asking this question is at the end i have to use the language which i have mastered.Java got better applications (like android studio) will i regret taking java
+ 2
Vansh Wadhwa Kindly use the Search bar ....
https://www.sololearn.com/discuss/1029727/?ref=app
https://www.sololearn.com/discuss/1516511/?ref=app
https://www.sololearn.com/discuss/1252793/?ref=app
https://www.sololearn.com/discuss/284896/?ref=app
https://www.sololearn.com/discuss/103179/?ref=app
https://www.sololearn.com/discuss/206952/?ref=app
https://www.sololearn.com/discuss/338448/?ref=app
+ 2
If performance is a concern, use C++
+ 2
For competitive coding use C++ as it has multiple advantages over Java in terms of performance and other things as well
+ 2
Anmol Pal Ok thanks man
+ 1
Wlcm :)
+ 1
Use the language which u feel comfortable in. For competitive programming most of the people will be using cpp and also most of the problem solutions in internet answerd using cpp
So if u are beginner in competitive coding then i suggest to use cpp
But if u are already comfortable in java
Then it would be better solving problems using java only
0
Vankayalapati Santosh thanks brooo
- 2
javascript for sure ;) ... ooh wait your limiting yourself to C++ or Java ... have fun with the ridiculous problem sizes.
think half the prolems have ridiculous upper bound. heres the datatypes you'll be working in for c++ (probably long long int for everything, or unsigned long long int)
https://gist.github.com/Rajpra786/58cc0d252aececb40ca1fa30d9d0c93c#file-datatypes-csv
think most people use "typedef long long int LL" if using c++ for shortening code.
also isnt android development kotlin + java ;)