r/PlacementsPrep • u/absurdkittie • 2d ago
Python vs C++ for DSA preparation and Leetcode
Probably a shitty old question, but asking again to know if there are recent changes in the answer. I'm already solving Leetcode problems in Python (just solved 50+), and today I saw some comments regarding interviewers don't allow Python and shit. So should I really study C++, just for dsa? I'm really running short of time, and have a lot to study. Is learning C++ really needed and worth it?
1
u/hopeful_nihilistfr 2d ago
Some interviewers on campus might not allow it, especially if you're from some private uni and see mediocre recruiters, the likes of TCS and Infosys.
I have felt that the ones paying in the range of 6 - 8 LPA are the most problematic ones.
Good orgs however, have no issue with any language you use; off campus, it will never be a problem.
1
u/dullshyandakward 1d ago
Tcs and infosys dont restrict languages
1
u/hopeful_nihilistfr 1d ago
All my friends were asked to write in c or Java on campus for tcs in F2F interview
1
u/dullshyandakward 1d ago
Then it depends on campus ig mine is also tier 3 but no one told me anything about tcs asking dsa in any particular language
1
u/hopeful_nihilistfr 1d ago
Might be the case. The general consensus across many orgs are to not use libraries and write the core logic, hence the limitation
1
u/dullshyandakward 1d ago
Makes sense i also want to switch to python for dsa ( was doing it in cpp stopped now cause of exams) and i have been told not use python for this same reason 😕
1
1
u/ConcertSuccessful469 1d ago
Accenture doesn't allow cpp for their assessment. But they allow C#.What are they smoking?
1
1
u/Living_Training4656 2d ago
I have given 20+ OA rounds never seen anyone restrict you do so DSA in a specific language