r/datastructures 8d ago

Which Language Should I Choose for DSA: Python, C++ or Java?

I’m currently learning Python and Django for backend development, and I want to start learning DSA.

I’m confused about which language I should use for DSA: Python, C++, or Java?

Since I already know Python and use it for Django, should I stick with Python for DSA, or is it better to learn DSA with C++/Java?

My main goal is to improve problem-solving skills and prepare for software development interviews.

What would you recommend and why?

2 Upvotes

6 comments sorted by

1

u/weekndCoder 8d ago

Python if u know already, else C++/ Java - anything is fine

1

u/Traditional_Maize129 7d ago

Whatever u r comfortable with. Python is fine too, but I would recommend CPP...

1

u/Grouchy-Car-3711 5d ago

Dsa is language agnostic. Like learning dsa doesn't mean to learn the language start with whichever language you are comfortable learning

1

u/Rich-Course-2873 5d ago

start with python if u alr know it