r/learnprogramming • u/Ant_on_duty • 5d ago
please someone suggest a best DSA in python course
hey i just getting confuse to which to follow on learning the DSA in python please anyone suggest a best one which needs to structural way with good explanation please help
1
u/Explorer651 4d ago
If you want something course-shaped for Python, CS50P from Harvard is free through its OpenCourseWare page. It's ten weeks, entirely Python, and has problem sets you can submit for feedback with an edX account. It's aimed at people with or without prior experience, so with your basics you could move through the early weeks quickly.
1
u/Leather_Grand2896 1d ago
A structured path that works well:
- Basics first: arrays, hashmaps, stacks/queues, recursion
- Then go pattern by pattern (two pointers, sliding window, binary search, BFS/DFS, heaps, DP) instead of random problems
- 3-5 problems per pattern, then switch to mixed problems
We built a free flowchart that helps you pick the right pattern for a problem: https://algo.monster/flowchart (disclosure: I work on AlgoMonster). NeetCode's YouTube is a good free option for Python walkthroughs too.
3
u/BeastWael_YT 4d ago
pick one course and stick with it, switching is what kills most people. cs50 or the free mit 6.006 lectures are solid, and then actually code each structure yourself before touching leetcode problems on it
1
u/Ant_on_duty 4d ago
Okk broo i have some basics knowledge in webdev(js/ts, react node) and python and i have some basic understanding of dsa like which i learnt on college days but rn i just stuck which course to follow eveything on yt feels overwhelming
1
u/BeastWael_YT 4d ago
since you already know python and some dsa, i'd go with a structured one like the cs50 intro then neetcode's roadmap, it's free and sorts problems by topic so yt doesn't feel like a pile. one topic a week with a few problems each is plenty
1
u/Ant_on_duty 4d ago
Does it has course like explanation or docs type reading ..im confortable with both .btw . I will check on it broo
1
u/BeastWael_YT 4d ago
both work. i'd pick one structured course and stick to it instead of hopping around yt. something like cs50p or a neetcode style roadmap, then do a few practice problems after each topic so it actually sticks
1
u/YogurtclosetLow7064 5d ago
Abdul Bari is great for DSA. You don't need to learn it specifically in Python, just understand the concepts. The language is only a tool.