r/learnprogramming • • 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

14 comments sorted by

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.

2

u/goqmo 1d ago

eah, starting with heavy theory like that is a surefire way to burn out before you even write a line of code.

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
  1. Grokking Algorithms book
  2. Abdul Bari's Data Structures and Algorithms course in C
  3. Neetcode 150 in Python

2

u/ComprehensiveChip811 2d ago

Striver A tk Z sheet.

2

u/mkhanwrites_ 1d ago
  1. CS50 - An Intro CS MOOC (Massively Open Online Course) by Harvard - covers a large range of languages
  2. Algorithms, 4th edition by Sedgewick and Wayne - textbook, booksite, lectures, MOOC available - refer https://algs4.cs.princeton.edu/home/ - data structures & algorithms in Java

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/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.