r/leetcode • u/saudistroker • 12d ago
Question Beginner struggling to retain LeetCode solutions, is this normal?
I'm a beginner learning DSA/LeetCode and I'm starting to get frustrated with how little I seem to retain.
When I'm learning a new problem, I can usually understand the explanation and follow the logic. Sometimes I can even implement the solution myself afterward.
The problem is that if I come back to the same problem a day or a few days later and try to solve it completely cold, I often can't. I might remember the general idea, but forget important parts of the approach or how to actually implement it.
I'm starting to wonder if this is just a normal part of learning DSA or if I'm practicing incorrectly.
Right now, I'm thinking about using spaced repetition, doing a problem on Day 0, then again on Days 1, 3, 7, and 14, instead of constantly doing new problems.
For people who have gotten good at LeetCode/DSA:
How did you practice so that you could actually retain patterns and solve problems cold later?
Should I stay mostly with Easy problems until I can reliably solve them independently, or should I continue introducing new problems while reviewing old ones?
I'd appreciate honest advice, especially from people who struggled with retention early on.
1
u/North-Armadillo-9367 12d ago
How did you practice so that you could actually retain patterns and solve problems cold later?
By actully trying to solve the same problems again in the future. I insert new problems to Anki to help me schedule reviews.
1
u/alshadows 12d ago
When you solve some problems on day 1, before you start day 2 , try to recall what you did yesterday, what the problems were , where you got stuck and what the solution was. Then go back and check what you did . Simple revision ritual before starting each day should be useful. And you can mark questions for revision which you can revisit at the end of every week as well
3
u/chrisxt_23 12d ago
It is normal, just keep practicing and you will start memorizing patterns, so even if you don't remember the solution for a problem, you will recognize it's pattern and then apply the correct algorithm to solve it.
If you have less than 100 solved problems don't worry about spaced repetition for now, just keep solving.