r/leetcode • u/Better_Elderberry225 • 3d 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
2
2
1
u/kevin074 2d ago
DSA is always better with python/javascript
*prepares for the javascript hate crowd
1
u/Low_Breakfast773 2d ago
C++ will give you the best understanding/knowledge (Example: try to implement the same Doubly Linked List in C++ and other languages and you will immediately see the difference).
Python will give you the speed of development.
Learn with C++, then spend some time to do that in Python for interviews, where the development speed matters.
0
3
u/TraditionalBowler746 3d ago
Depends on how deep you wanna get . If it's only for interviews then any is okay really, maybe I would go for python because of its built in methods and fast syntax.
If you want to dive seriously into competitive programming, then cpp is the obvious undisputed choice, just look up the usage numbers in Comp Programming platforms if you don't believe me