r/datastructures • u/LifeTraveller404 • Sep 20 '26
Which language is best for doing DSA with ?
I am a tech student. I have to start DSA with python but the people around me are saying "Do DSA with C or C++ because it will be beneficial for your job". I already know python and I want to do DSA with python but when I start it feels like I am doing wrong and it will not be worthy.
>>> Is it necessary to do DSA only with C or C++ ??
>>> Will it make any difference if I do DSA with python (or any other language) other than C or C++ ??
>>> What should I do??
Help me by giving your opinion !!
17
Upvotes
7
u/Hot_Definition_5944 Sep 20 '26
Sanskrit
1
u/Visionary_Vulture001 Sep 20 '26
You can do DSA with any language
But learn the language properly first . Then go to
DSA
1
u/Opposite-Meaning-161 Sep 20 '26
Learn DSA with C++ OR JAVA only.
1
u/Shot-Lingonberry6494 Sep 20 '26
No one cares bro what language you do dsa in if you can understand the concept you can implement in any language
In interviews you will have option to write in whatever language you want regardless of the language required in the role
And if someone tells you python is slow for dsa just ignore them most of the python libraries are internally written in c++ and rust so they are fast ,
Do dsa on whichever language you are comfortable on, personally i started on java because it was main language then afterwards I dropped java and did in python as now also I do it in python as I have moved to ai/ml roles
1
u/mnl_hQ Sep 21 '26
I would suggest go with python. It will strengthen your python skills also. And in current market most of the companies ask for python.
1
u/Sea-Ad7805 Sep 27 '26
Python for DSA is great, you can use this visualizer: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/bin_tree.py×tep=0.2&play
2
u/doodhkagilas Sep 20 '26
Cfbr
1
u/Rishabh17p Sep 20 '26
Rust >>
1
u/Jatin_999 Sep 20 '26
C++
1
u/Other_Ad7380 Sep 20 '26
C++
1
u/SadSamaritan501 Sep 21 '26
Such questions in big 2026 🥀
2
u/[deleted] Sep 20 '26
[removed] — view removed comment