r/learnprogramming • • 2d ago

How to learn DSA?

I have just started DSA so whats the best way to start and how to solve a leetcode a day cause i have no deep knowledge about DSA?

0 Upvotes

8 comments sorted by

2

u/davidbalbino 1d ago

tbh don't start with a leetcode a day yet. first get comfortable with arrays, hashmaps, two pointers and recursion, then do easy problems grouped by topic (neetcode roadmap is good for that). if you get stuck more than 30-40 min, read the solution, understand it and try to write it again from zero the next day. that last part is what actually makes it stick imo

1

u/freakkdrama 3h ago

Thank youu

2

u/YogurtclosetLow7064 16h ago

I'd recommend starting with this playlist. It helped me understand the basics: https://youtu.be/xwI5OBEnsZU

2

u/freakkdrama 3h ago

Thank you very much

2

u/YogurtclosetLow7064 3h ago

You're welcome!

3

u/HanzoShotFirst 2d ago

Neetcode.io

3

u/Stock_Test2326 2d ago

I just finished Needtcode DSA basics videos, probably the best one out there.

sure there are more hands-on programming types that may or may not do better. but this one explains (almost theoretical) with drawings and explanations

(my lazy ass didn't practiced any code but took notes though)

3

u/[deleted] 2d ago

Well implement them, yourself through code any language you know, c,c++,java anything,this is a best way to learn and you have YT for the complete learning resources