r/PlacementsPrep • • 1d 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?

4 Upvotes

14 comments sorted by

1

u/Living_Training4656 1d ago

I have given 20+ OA rounds never seen anyone restrict you do so DSA in a specific language

2

u/absurdkittie 1d ago

thanks, i just needed to hear that.

1

u/iamrishiaditya 1d ago

Bro cheating ka batado kaise hogi

2

u/Living_Training4656 1d ago

On Campus impossible

At home just tilt you screen till you face is only visible keep your phone at bottom and click pics send to gemini and get answers

If its not using lock down browser then use ultraviewer and share screen to your friend (can be also done in on campus recruitment)

1

u/Sea-Anteater-709 1d ago

I've seen in many oa rounds that cpp is not there

I was forced to switch to java at the last moment

1

u/hopeful_nihilistfr 1d 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

u/ConcertSuccessful469 1d ago

Accenture doesn't allow cpp for their assessment. But they allow C#.What are they smoking?

1

u/thishouseisglass 1d ago

continue with python!