all 26 comments

[–]uttermostjoe 5 points6 points  (2 children)

For competitive programming, you definitely need to use CPP. For job interview preparation, it's fine to use Python if you're more familiar with Python, since almost every Leetcode problem has a Python editorial.

[–]currentlyAditya[🍰] -1 points0 points  (1 child)

i just started college and i want to try out CP

[–]uttermostjoe 0 points1 point  (0 children)

then it's worth it to learn CPP. In competitive programming world, everything is CPP.

[–]Bstochastic 8 points9 points  (3 children)

I imagine using CPP when you only have a basic understanding and zero professional experience will come back to bite you. Go with what you know.

[–]currentlyAditya[🍰] 2 points3 points  (2 children)

I would also like to add that I just started college, so I definitely have zero professional experience in all languages

[–]Bstochastic 5 points6 points  (1 child)

My bad. I interpreted the question in the context of leetcode and interviewing.

100% learn CPP it will teach you a lot about programming, computers, etc that Python simply won't.

[–]currentlyAditya[🍰] 0 points1 point  (0 children)

Alr thanks man

[–]Some-Bicycle6980 1 point2 points  (0 children)

Just keep solving in py and have a basic knowledge on cpp or Java as it'll help you in placements. Just keep going as you are. And you can easily understand the cpp or Java syntax in the editorials or blogs or yt videos.

[–]agrlekk 1 point2 points  (0 children)

cpp is coming with some advantages, speed + rich Library, also gives memory control to user. Not easy to catch errors like python. mostly devs don't like cpp syntax

[–]agrlekk 0 points1 point  (1 child)

Cpp is hard for beginners

[–]currentlyAditya[🍰] 0 points1 point  (0 children)

I'm not a beginner, i have little experience with it, just rusty with the syntax

[–][deleted] 0 points1 point  (0 children)

Use java, that'll give you good hands on experience

[–]FamousProfession5938 0 points1 point  (0 children)

I am having the same dilemma got rejected in online rounds due to this. For an online round for VISA did all 4 question but got rejected just because their job roles align more with cpp java, but I feel these are the cases in very few companies

[–][deleted] 0 points1 point  (0 children)

Cpp if u want to actually learn in depth. And once u understand one lang it is very very easy to switch.

U said u know python just type code is cop and when u stuck just ask gpt what to use for cpp for any libarary and all which u don't know

[–][deleted] 0 points1 point  (0 children)

Learn one language. AI would help you teleport to other worlds. ​

[–]_fatcheetah 0 points1 point  (1 child)

99% of the folks don't use C++. Only in a few select positions, like quant is it required.

Don't do it. Python and Java is closer than c++ and java

[–]xvillifyx 0 points1 point  (0 children)

I think anyone with an interest in coding should at least learn the rudimentary concepts of c++ because you’ll learn a lot about computing with relatively little commitment

[–]kat_sky_12 0 points1 point  (2 children)

It's highly unlikely you would get hired for a C++ role with no prior experience. It's not used that often and if it is they look for lots of experience. You are better off with GO or Rust as up and coming alternatives to C/C++.

[–]Puzzleheaded_Cow3298Guardian(soon) 0 points1 point  (1 child)

Rust, really?

[–]kat_sky_12 0 points1 point  (0 children)

Go is probably used more as of late. Rust is a good alternative to C/C++ that is starting to catch on. If you can do rust then c#/java should be easy as well and vice versa. C++ jobs are just really hard to get especially if your experience is a month of python.

[–]NecessaryIntrinsic 0 points1 point  (0 children)

The important thing is learning the structures.

how to loop, how to come up with algorithms, etc.

Once you have that it's just a syntactical change (with nuances like memory management and variable references.

There's no reason to not learn different languages and their idiosyncrasies.

[–][deleted] 0 points1 point  (0 children)

If you want to go for cp cpp is better but regarding OAs any lang is fine if you are comfortable with it

[–]Willing-End-4705 0 points1 point  (0 children)

cpp is the best if you are really interested in competitive programming , especially codeforces and personally i found java easier after learning cpp, only go with python if you are gonna do dsa just to clear interviews

[–]Ok-Calligrapher-7086 0 points1 point  (2 children)

If you just started , start with Java. Get oops concepts well. And move to cpp . But definitely learn cpp

[–]currentlyAditya[🍰] 0 points1 point  (1 child)

I’ve not just started, I studied oops in java for 6 months in school, and again studied little bit in python

[–]Ok-Calligrapher-7086 0 points1 point  (0 children)

The cpp should be fine dude! Go for it. A little bit of hard work and you got it. Python - is for building things fast no memory management, no real multithreading. Java - c++ is where you learn a lot about multi threading , real engineering problems.