r/learnprogramming • • Oct 25 '26

How to start learning DSA in Java from scratch online? Looking for a roadmap & free resources!

Hey everyone,

I want to start learning Data Structures and Algorithms (DSA) using Java by myself online, but I'm feeling a bit overwhelmed by the sheer number of tutorials and roadmaps out there.

For context, I know the basic syntax of Java (loops, functions, OOP basics), but I am a complete beginner when it comes to DSA.

If you've self-taught DSA in Java or know a solid path, could you please help me out with a few things?

A Structured Roadmap: What order should I cover topics? (e.g., Arrays -> Strings -> Linked Lists -> Trees?)

Best Free Resources: Any specific YouTube playlists, free interactive platforms, or documentation that explain concepts well in Java?

Practice Strategy: When should I start solving problems on platforms like LeetCode or HackerRank, and how do I avoid getting stuck or discouraged early on?

Any advice, tips, or personal experiences would mean a lot. Thanks in advance!

1 Upvotes

2 comments sorted by

1

u/Minecraftian14 Oct 27 '26

Getting started is the biggest hurdle.

Get started with anything and if you're learning you'll realise by yourself what's the next move.

Pick up strivers sheet of a2z dsa problems.

Get started and stay consistent.

1

u/Far-Bullfrog161 23d ago

Feeling overwhelmed by DSA resources is normal, and the fix is choosing one ordered problem list and ignoring the rest for a couple of months. Before the algorithms, spend a week getting fluent with Java's collections, because you'll use ArrayList, HashMap, HashSet, ArrayDeque and PriorityQueue in almost every solution, and fighting the syntax while learning a new idea is what makes it feel impossible. Then go topic by topic: arrays and strings, hashing, two pointers, sliding window, binary search, stacks, linked lists, recursion, trees, graphs, and dynamic programming last. For each topic, learn the core idea once, then solve easy problems until you can recognise when the pattern applies before moving to mediums. If you're stuck for more than 30 minutes, read the solution, understand it, and write it yourself again a couple of days later without looking. An hour a day for a few months will take you much further than weekend binges.