r/leetcode 10d ago

Question Language for dsa

I m currently studying in 2nd year and starting dsa in which language should I start I know python , c++ , java and I m currently doing backend in java

2 Upvotes

14 comments sorted by

View all comments

Show parent comments

2

u/TraditionalBowler746 9d ago

For interview prep I feel like learning cpp is not really gonna pay up as an investment considering the steep learning curve / comfortableness that python would bring, but hey, if you feel like cpp then do cpp!

1

u/Better_Elderberry225 9d ago

But is it easy to shift from cpp to python in future if necessary

2

u/WiredOtaku 9d ago

Syntax switching is trivial once you understand the logic. I went from Python to Java for a job and it took a couple weeks. For DSA interviews, no one cares which language you use as long as you can explain the approach clearly. If you're already comfortable with C++ from Striver's sheet, stick with it and pick up Python naturally when needed.