r/learnprogramming • u/freakkdrama • 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
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
2
u/YogurtclosetLow7064 16h ago
I'd recommend starting with this playlist. It helped me understand the basics: https://youtu.be/xwI5OBEnsZU
3
u/HanzoShotFirst 2d ago
Neetcode.io
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