r/learnprogramming • u/403-forbidden--error • 2d ago
Looking for recommendations: Best resources to learn DSA from scratch
Hello everyone!
I am a first-year Computer Science and Engineering (CSE) student, and I want to start learning Data Structures and Algorithms (DSA) from the absolute ground up.
Could anyone suggest high-quality websites, books, or courses that are beginner-friendly?
I would also love to hear any tips, strategies, or roadmaps you wish you knew when you were starting out.
Thanks in advance for your help!
24
Upvotes
10
u/Explorer651 2d ago
MIT OpenCourseWare has Introduction to Algorithms with lecture videos, notes and problem sets with solutions, all free. It covers data structures and algorithm design at a university level, so it may be better as a second pass after a gentler beginner resource.
5
u/notarshzzz 2d ago
i wasted ages collecting courses before i actually started lol. just pick one thing and code it till it clicks, that helped me way more than another video playlist
3
u/robobob9000 2d ago
2
u/ComprehensiveChip811 2d ago
Striver A tk Z sheet.
2
u/mkhanwrites_ 1d ago
1
u/No-Professional-9618 2d ago edited 1d ago
You can try to use various Deitel & Deitel C++ or Java How to program textbooks. I used these textbooks in college.
1
u/neonirma 1d ago
From scratch? Maybe not. From a book or online lecture? Yes
1
u/HonestMuscle49218 1d ago
There are two ways to learn DSA:
1
u/AnswerVinod 12h ago
For a first year student I would start with Strivers A2Z sheet, it is free and it takes you topic by topic in a sensible order. Do one topic at a time, arrays first, then hashmaps, two pointers, stacks, linked lists, trees, graphs last, and solve 10 easy problems per topic before moving on. The thing that helped me most was writing the steps in plain words before coding, if you cant say it in words you cant code it yet. And dont collect five courses, one list plus daily practice for three months beats a year of jumping between tutorials.
1
u/Leather_Grand2896 12h ago
first year is a great time to start, no rush. pick one language and stick with it, get the basics down (arrays, strings, hashmaps, recursion) and then go one pattern at a time instead of random leetcode. grokking algorithms is a nice easy book if you like reading. we have a free how to study guide here https://algo.monster/problems/getting_started (i work on algomonster) but honestly any structured list works if you stay consistent
•
u/mscott-61 13m ago
For each problem, write a brute-force idea and trace a tiny input by hand. If you need a solution, study it, close it, then rebuild it from memory.
-2
u/aqua_regis 1d ago
How about just typing "DSA" or "Data Structures and Algorithms" into reddit's search box? There are more than enough posts covering this already.