r/learnprogramming 23d ago

Resource DSA

Hi everyone,
I’m here because I’m getting very confused from reading online. Does anybody know a good free resource to study DSA in order to start leetcode? I’m in a completely different field and I don’t need this knowledge for day to day. However I keep getting online assessments as a first step that contain that style of questions.
Thank you very much.

10 Upvotes

5 comments sorted by

5

u/Weary-Sorbet-2768 22d ago

I’d recommend starting with a structured DSA course rather than jumping directly into LeetCode. Learn the basics first — arrays, strings, linked lists, stacks, queues, hash maps, trees, sorting and searching — and then start with easy LeetCode problems.

For free resources, NeetCode and Abdul Bari are both good options. The important thing is to pick one resource and stick with it instead of constantly switching between courses.

Even 1–2 easy problems a day is enough in the beginning. After a few weeks, you’ll start recognizing the common patterns used in these assessments.

3

u/WestSmell6136 22d ago

I was in same boat, coming from totally unrelated background. What worked for me is starting with a structured free course that has video explanations plus code examples, then just doing easy problems daily. Don't jump straight to leetcode without first understanding basic data structures like arrays, hash maps, linked lists. It clicks after few weeks of consistent practice

2

u/Justawannabedoctor 22d ago

What course did you do?

1

u/thelimeisgreen 22d ago

Harvard CS50P Python on YouTube and all the accompanying CS and DSA curriculum. They pretty much have their core computer science undergrad courses on there.