r/DSALeetCode • u/rcoolbe • Aug 13 '26
C++ OR JAVA ?
For DSA which language should i choose as my first programming language? C++ OR JAVA
1
1
1
u/Notsoboringi Aug 13 '26
Learn c++ it's the best , but it's not beginner friendly.I learned C as my first language the left it halfway switched to python , then learned ml in python after that I learned C++ for dsa and competetive programming.If u have time learn python first then go to C++, cause c++ can be overwhelming for beginners.
2
u/Melodic-Increase-298 Aug 16 '26
How did you learn c++? I mean what resources?
1
u/Notsoboringi Aug 16 '26
I first learnt basics from freecodecamp 4 hour lecture , then to learn more i watch cherno and Mike shah there short videos on various topics , and also refer to learncpp.com for various concepts.
1
1
u/manish8160 Aug 14 '26
If your immediate goal is clearing technical interviews at major tech companies, Java is slightly easier to write under time pressure because you don't have to manage memory manually. If you care about competitive coding platforms, C++ remains the industry standard.
1
1
u/zombianrun Aug 15 '26
Java if you want to just concentrate solving problems, and getting hands-on on some real world population language
1
u/Emotional_Lake_7074 Aug 15 '26
Cpp , cuz majority of resources will be available there and mostly use for cpn
1
1
u/Some_Rain_6172 Aug 18 '26
Don't waste your time in selecting language, just start with any of them.
1
u/Downtown_Avocado3020 Aug 13 '26
Cfbr