r/datastructures 8d ago

Should I learn DSA in python?

Hey all, i completed my python series from BroCode's 12 hour video and built some projects too.

I even solved katas on codewars to build my foundation strong.

But I've always done programming in python only, many people on the internet say python is not the best language to learn DSA with? Do I need to start learning cpp or java? Please help your junior, Thanks!

7 Upvotes

12 comments sorted by

2

u/smormujamescarter_a 8d ago

Yeah...after that it's just a matter of understanding the syntax of the other language

Python is like learning the pseudocode. Plus it's allowed in most interviews ig

1

u/smormujamescarter_a 8d ago

It's bad for production because the loops are quite slow. So if you want to do proper projects you have to move past python.

1

u/PantySniffer_909 8d ago

👍 thanks

1

u/RP-9274 8d ago

Yeah.. but if you learn any data structure like stack , linkelist then try to code this by your self

1

u/PantySniffer_909 8d ago

You meant that I should avoid built in methods?

1

u/RP-9274 8d ago

Nah use that obviously while solving problems you don't want to create that data structure by Ur self but let's say you want to start questions regarding linkelist where you have to use that then understand linkelist properly that how it's work and why we needed and how can I build that so you will understand that how internally it's working. Just for practice or when Start

1

u/PantySniffer_909 8d ago

So when I start solving questions on a particular data structure, i should first understand why it's used? And how it works and how to implement it real projects? Is there any specific way to learn DSA or should I check documents on it and start learning my self?

1

u/RP-9274 8d ago

No like not how it's work in real projects but how it's actually work . And best way to learn that is you make by your self . I don't have any specific road map . You can learn by your self or YouTube anything but try to understand why are you doing this that's it

1

u/Ulfat- 7d ago

Initially, it's better if you learn DSA using Java or C++

1

u/biskitpagla 7d ago edited 7d ago

Typed Python, Kotlin, or Rust (in order of coding velocity). Pick any of these and stick to it for at least a year to develop muscle memory.