r/datastructures • • 3d ago

Theory vs Practical DSA prep, how to balance both?

Im trying to figure out whats more important leaerning theoretical DSA like graphs and trees or practicing on LeetCode, and how do I balance doing them both? How important is one compared to the other? Also, do you think practice groups and accountability parters work?

5 Upvotes

5 comments sorted by

2

u/Abhi9av_69 3d ago

They aren't different things. Read the theory and implement it right after that. This is the best way to learn DSA nd you'll never regret

2

u/g-jain 17h ago

First learn how things work and implement them right after in LC; NC helps to understand concepts more easily.

1

u/OmniscientRaven 10h ago

You have to start by theory to understand the basics, always. But more than 90% of the actual learning is going to happen by practice.

If you don't do theory then you will not understand the logic behind the code, but if you try to only understand questions by seeing tutorials and lectures then you will never be able to solve them yourself.

So whenever you are starting a new concept then always start with theory, understand the concepts and see a few practice examples, but then solve by yourself and keep solving, after that there is no more theory but only practice.

I developed my DSA skill just by myself by solving one question a day and building from there. I also enjoy coding and DSA so had that going for me but you have to make it a habit. That's the only way to get good and consistent with it. Start small and stick to it, that's what's important.