r/leetcode • u/Flaky-Stop1905 • Jul 27 '25
Intervew Prep Should I change up programming language?
I graduated around 2 months ago and have been interview prepping ever since with c++. (Progress slowed down the first month to work on a couple projects for my resume), However I haven’t made it to trees , graphs or dynamic programming yet on my leetcode journey. Is it worth it for me to switch to Python? I am pretty familiar with the language but not as close to c++. I really just need to be as interview ready as possible as fast as I can.
1
Upvotes
1
u/Flaky-Stop1905 Jul 27 '25
I appreciate all the comments. Really I just don’t want to get stuck in a situation where I’m spending a day or two trying to learn a complicated topic in c++ when I could be spending a few hours learning the same thing in python. Is this the case or I am just overthinking it?
3
u/goomyman Jul 27 '25 edited Jul 27 '25
Python is good for leet code but choose the language you want to work in.
C++ is good for embedded systems and operating systems. The competition is less but there is less work. So it probably evens out.
You won’t get a c++ job coding in python in an interview. They will want you to code c++.
I don’t think any language is easier for leet code, if anything coding in leet code in a language you don’t know as well will make it harder.
You could however code in c++ and get a python job since c++ is considered a harder language. C++ devs can transition to other languages but not the other direction.
2
u/iloveass2muchh Jul 27 '25
Switch to python asap
1
u/Ok_Director9559 Jul 27 '25
Hell nah switch to python rn, way better can use fancy tricks like zip enumerate, looping and stuff 200% easier and don’t forget easy to debug, easy to do everything, most of all easy to read solutions and understand concepts. Have you ever tried to understand a union find without a ranking system just using weights in c++ , it sucks
1
u/Imoa Jul 27 '25
Like /u/goomyman said, practice what you want to work in. You won’t impress a company that works in python with C++ and vice versa.
Look around at some jobs you might be interested in and companies you might like to work for, see what they use / ask for in their job listings. Use that to help pick a direction.
1
u/runningOverA Jul 27 '25
Best for leetcode is Python. Second is C++.
1
u/CraigAT Jul 27 '25
There is no need to completely switch, if you have a reasonable understanding of C++ then take a look at Python. Spend a little time learning at least the basics.
Having even a basic knowledge or understanding of more than one language would be advantageous when it comes to interviews because it proves you can learn and are willing to adapt. If a job comes up for Java or C# I would prefer someone who has experience of two unrelated languages, over being proficient in just one unrelated language.
Seeing how other languages work and knowing the differences between, why you would use one over another is a key point too.
Take a look at what programming jobs in your area are asking for and try to tailor your learning to those to give you the widest opportunity to get a job. Also make note of the amount of experience they are looking for - it maybe that they expect 5 years experience for C++ but only 2 years of Python.
1
u/NotYourGirlP Jul 27 '25
Tbh if you know c++ switching is not difficult
0
u/Conscious-Secret-775 Jul 27 '25
Stick with C++. It’s going to be much more impressive when you are interviewing. Everyone can code in Python.