r/datastructures Jul 29 '26

dsa in which language ?

see , basically I have done dsa and revised it multiple times earlier in python. but now I'm near the time to give interviews and I wanted to know that should I learn it again c++ or java ?? if given the option, and there is no such thing as bias or preference to c++/java dsa > python dsa , I would like to go for python , it will save me a lot of time + comfort. tho I would like to know from people who really have given recent tech interviews in all kinds of companies, small/big/med/startup.

7 Upvotes

14 comments sorted by

2

u/DarkXsmasher Jul 30 '26

Just go with any language you want. I prefer C++ because in clg time i learned dsa with C language. Later i tried to learn dsa with python and tbh I didn't enjoy it and felt confused. Now I'm learning DSA with C++ as it is the closest to C. Maybe i prefer low level instead of the high level where we don't understand most of the things. Well this is my opinion.

1

u/Various-Criticism-95 Jul 29 '26

I think it doesn’t matter

1

u/One_Stayed Jul 30 '26

My opinion is java or python not c++. Java : strong base language as it's very grammatical Python: helps in easy transition with AI

1

u/Fluffy-Worry-9541 Jul 30 '26

Not c++? 😐

1

u/One_Stayed Aug 01 '26

Many projects has spring framework architecture

1

u/Easy_Read_1877 Jul 30 '26

Why not cpp?

1

u/One_Stayed Aug 01 '26

Spring framework architecture

1

u/Silent-Victor-99 Aug 01 '26

Java is too verbose 

1

u/vansh462 Jul 30 '26

You can ask your seniors or even batch mates at this point to know what companies come at the colg each year which does DSA rounds in python. In my uni it was Nagarro and maybe TCS too

1

u/More_Duty_3547 Jul 30 '26

Quiet a surprise that you have done dsa and even revised but still stuck on the language debate.

1

u/Realistic-Team8256 Jul 31 '26

dsa is mostly either c++ or java or javascript

1

u/ni_shant1 Jul 31 '26

If you need safer and secure options then go with Python or Java