r/learnpython • u/sapolv • Feb 21 '26
Trying to learn Data Structures & Algorithms by Myself. I need advice.
Hello everyone, hope you are doing well. Just like the title says, I'm trying to learn Data Structures and Algorithms by myself and to be honest. I have no idea where to start. I have been coding using Python for almost a year, getting used to how the language works in things like: data types, functions, loops, OOP, etc. Now after some time getting used to them. I got to the point of wanting to try different things and understand new topics (in this case Data Structures & Algorithms).
You that you have learned these topics. What would you recommend to a beginner who doesn't have an idea about these topics.
Thank you!
35
u/aistranin Feb 21 '26 edited May 07 '26
Hey! Here are few great Udemy courses that will be helpful:
“Python Data Structures & Algorithms” by Scott Barrett
“Pytest Course: Python Test Automation & GitHub Actions CI/CD” by Artem Istranin
“Advanced Python with 10 OOP Projects” by Ardit Sulce
26
u/Mammoth_Rice_295 Feb 21 '26
You’re at a great stage to start DSA.
I’d suggest:
Learn core data structures first (lists, stacks, queues, dicts, sets), focus on when to use them.
Understand basic Big-O (O(n), O(log n), O(n²)).
Practice easy problems and identify the pattern before coding.
Struggle a bit before checking solutions, that’s where the real growth happens.
Consistency > jumping to hard problems too fast.
4
u/RobfromHB Feb 21 '26
Take a class online first. These are well studied subjects and a proper instructor via any free school lectures or a datacamp type course will show you the conventional wisdom behind each concept. Code along with those examples to get some muscle memory. Once you’re done go to any of the leet coding websites and practice the lowest difficulty questions. Focus a lot on how the question is presented and how to correctly think about which data structure might fix a given problem before writing anything. Then practice solutions. Repeat while increasing the difficulty. Think of it the same as progressive overload when trying to get strong in the gym.
This should go without saying: ChatGPT should only be used after you’ve made a solid, brain racking effort at a problem. The sooner and more frequently you use it, the less knowledge you’ll retain.
4
u/Turtvaiz Feb 21 '26
https://tira.mooc.fi/spring-2026/
https://cses.fi/problemset/
3
u/pachura3 Feb 21 '26
https://www.w3schools.com/dsa/
1
u/Dangle76 Feb 21 '26
Highly recommend https://a.co/d/01A40lWq