I've been struggling with DSA problems lately. Every time I sit down to solve them, my mind goes blank, and I quickly resort to watching YouTube solutions instead of working through the problem independently. While it's easy to understand the solutions in videos, I realize I'm not actually learning how to tackle these problems on my own. This leads me to the same frustrating cycle each time I face a new problem. Has anyone else faced this issue? What strategies have you found helpful in resisting the urge to check solutions too early and actually learning to solve the problems on your own? I'd really appreciate any advice from those who have overcome this challenge!
5 Answers
It sounds like you might be going about it the wrong way. Watching solutions isn't inherently bad, but it’s key to understand every step of the solution. Try using a mix of guided exercises that get progressively complex and then move to problems where you have to solve them solo without solutions. Most textbooks do this well, but video series often don’t. A structured approach will help in mastering the material.
Have you thought about using pen and paper? Visualizing your data structure can really help. Draw it out as you work through the algorithm step-by-step. It might help clarify what the solution involves and make the whole problem less overwhelming.
Improving your problem decomposition skills might help! Large DSA problems can feel daunting, but breaking them into smaller parts makes them more manageable. Practice identifying smaller sub-problems as you read the exercise. This takes time to develop but can be a game changer for tackling bigger challenges. Planning ahead before coding is crucial too!
Try setting a self-imposed timer before looking at solutions. Start with something manageable, like 15 minutes, and gradually increase it. If you find certain problems too challenging, work on easier ones first to build your confidence. Maybe you have some mental blocks—overthinking your abilities can lead to avoidance. Tackling easier problems might help with that.
Start with easier problems to build your confidence! It sounds like you're getting discouraged too quickly. Overcome your frustration by solving simpler tasks first, then gradually tackle harder ones. With each success, you'll feel more capable, which will help with tougher challenges in the future.

Thanks for the advice! I’ll definitely look for some good textbooks.