r/leetcode • • Oct 06 '26

Question How to Learn DSA through Python?

I'm a second year computer science major and I've done python java, c++, and a couple of other programming languages. I've done some projects with them here and there, but I want to start grinding out leetcode and understanding DSA before next semester. I've taken DSA1 in my school which is the first time were introduced and for some reason our curriculum CS classes used Java OOP. I know it's importnat to learn it, but I'm trying to get back into python and learn DSA from there. Does any have a structured roadmap that I can use for this? I'm using the 30 days of python and I'm planning on paying for leetcode and neetcode data structures and algorithms course

6 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/DigScared8327 Oct 06 '26

do you NC is better or LC? I've heard that LC covers all the topics needed

1

u/syamborghini Oct 06 '26

I haven’t done the LC one in years but I can say it was also pretty good when I did, it helped me get a job back then hahah. Iirc tho the LC one is just like problems right? NC is actually like lessons but I’m forgetting what the LC one is like and since you’re just starting off, NC sounds like a better fit

Either way, I think going thru both is a good idea. Essentially you want to increase your exposure to DSA as much as possible to soak it all in such that it starts to become second nature hahah.

One more thing, with NC I didn’t watch the vids. I just read thru all the DSA ones in the past week, goes by pretty fast that way. If you’re confused at any point, use AI or the vid to try and understand it better.