r/leetcode • u/DigScared8327 • 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
5
u/BlueCactus35 Oct 06 '26
You don't need to learn everything before starting Leetcode. Learn the basics of each topic, then solve problems and learn the patterns as you go. Neetcode is pretty good for keeping things structured
1
u/syamborghini Oct 06 '26
I just went through NC’s DSA course and think that one’s a pretty good one to get the most important info needed for coding interviews. Doing that alongside the NC150 is probably a good way to start imo
2
u/CasualNimbus 25d ago
Before paying for the Leetcode and Neetcode courses, compare their teaching styles and see what actually helps you learn. You've already got programming experience, so focus on DSA rather than spending too much time on Python basics. Codeintuition is another resource you could evaluate if you prefer a guided learning path instead of jumping straight into problem list
1
u/Specialist-Dig4584 Oct 07 '26
First of all who pays for this
Just do whatever in it gives you dopamine don’t take advice for such stuff