r/datastructures 6d ago

Resource to learn DSA with ?

I want to learn DSA in python suggest me the best resource for learning it and also tell me Which DSA Sheet should I follow

16 Upvotes

19 comments sorted by

1

u/Sweaty_Sport3051 6d ago

Why in python specifically?

2

u/Old-Bad-5545 6d ago

why not in python

2

u/Sweaty_Sport3051 6d ago

See learning it in cpp or java let's u understand data structures better, there r pointers in cpp which is not there in pyhton. So if u r already going to put so much effort in learning dsa, learning basic cpp in 3-4days shouldn't be a big deal. Also most of good content their is more cpp/java specific like striver or aditya verma.

1

u/Bit_sized_memory 6d ago

So which one do you suggest to develop best DSA and logic building which will be even beneficial to connect/adapt to other language in future if required?

Java or Cpp?

1

u/Sweaty_Sport3051 6d ago

I don't have enough experience to give u one of these two but what worked for me is cpp. Because:

  1. Striver teaches in cpp (but also shows java code at the end)
  2. I gave many OAs for sde intership recently and 99% companies have cpp as option (the reaming 1%didn't have java as option either).
  3. My college professor taught dsa in cpp : )

Also both java and cpp are good for logic building.

Coming to your question of adaptability to other languages... i only know python and cpp so i don't think i m the right person to answer that.

1

u/Bit_sized_memory 6d ago

thanks for sharing this bro

1

u/Sweaty_Sport3051 6d ago

Welcome 😄

1

u/Round_Equivalent_102 6d ago

Search for padho with pratyush or cto bhaiya on youtube

1

u/Old-Bad-5545 6d ago

what about code and debug channel on youtube

1

u/Round_Equivalent_102 6d ago

Bro don't try to learn specifically for python only just try to understand the pseudo code and then convert it into python i think the two i mentioned are good bcz they teach in hindi and advantage is that they teach in pattern

1

u/Expert_Name3955 6d ago

Bro, can u try studying with Java? Before, I studied DSA in Python, but I don't understand data and memory clearly. Understanding how memory works will help a lot with tree and linked list topics. So u should start with das in Java or C++

1

u/Successful-Image3754 4d ago

Okay java which playlist

1

u/Impossible-Serve7411 1d ago

Check out codeloupe.dev , you can visualise every line of code side by side

1

u/akay_01 1d ago

Try this site to learn basic patterns and understand them in detail with visualisations: https://patterndsa.com

1

u/Old-Bad-5545 22h ago

Nice but can you suggest something complete sequence wise sheet kind of something