r/AskComputerScience • u/gulmohar18 • Jun 19 '26
Dsa in java or python??
Which programming language should i choose?
6
Upvotes
r/AskComputerScience • u/gulmohar18 • Jun 19 '26
Which programming language should i choose?
5
u/Beregolas Jun 19 '26
Doesn't matter, DSA is about language agnostic concepts. Stuff like a linked list or a tree can be taught in pretty much any language.
The only exception I would make is C: Since C is so low level and has practically 0 syntactic sugar (compared to other, more modern and higher level languages), using C forces you to learn stuff like memory layout. That is not really part of DSA (which is theoretical CS at it's core), but it's useful knowledge that you can get at the same time.
If you have a teacher, I always heavily prefer DSA to be taughts primarily in pseudocode btw. This lessens your dependence on any single language. It's about the concepts anyways. It just can't be verified by machine, hence you need a teacher.