+ 4

Should I do competitive coding in C++ Or JAVA

13th Jan 2021, 3:54 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
15 Respostas
+ 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.
13th Jan 2021, 4:34 AM
Arsenic
Arsenic - avatar
+ 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!
13th Jan 2021, 5:48 AM
Abhiyantā
Abhiyantā - avatar
+ 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++)
13th Jan 2021, 4:56 AM
Arsenic
Arsenic - avatar
+ 4
Arsenic Thanks man. Understood your point
13th Jan 2021, 4:59 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 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
13th Jan 2021, 6:46 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 3
Thanks man Alphin K Sajan
13th Jan 2021, 4:02 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 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
13th Jan 2021, 4:43 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 2
If performance is a concern, use C++
14th Jan 2021, 6:14 AM
Sonic
Sonic - avatar
+ 2
For competitive coding use C++ as it has multiple advantages over Java in terms of performance and other things as well
14th Jan 2021, 11:02 AM
Anmol Pal
Anmol Pal - avatar
+ 2
Anmol Pal Ok thanks man
15th Jan 2021, 4:13 PM
Vansh Wadhwa
Vansh Wadhwa - avatar
+ 1
Wlcm :)
13th Jan 2021, 4:02 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 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
14th Jan 2021, 4:58 AM
Vankayalapati Santosh
0
14th Jan 2021, 5:04 AM
Vansh Wadhwa
Vansh Wadhwa - avatar
- 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 ;)
15th Jan 2021, 1:18 AM
Javadev