Why you forget a problem a week after you solved it
You did solve it. What you kept from it is a different question.
This one comes up almost every week.
I solved it ten days ago, I know I did, and now I am looking at it like I have never seen it.
Students usually treat this as a memory problem and start copying solutions into a notebook so they can revise them later.
That rarely fixes it, and the reason is worth understanding.
Two questions about the last problem you forgot.
What actually got stored the first time
When a solution finally clicks, it feels like you learned the problem.
What you mostly learned is that problem's answer, and answers belong to the problem that produced them.
You remember what you worked out, and you forget what you only watched happen.
Why copying solutions into notes rarely helps
A notebook full of code is a second copy of the answer.
Reading it later feels like revision because everything looks familiar, and recognising something is a long way from being able to do it.
The note worth keeping is one line long. What did this question make me notice, and why was that the thing to try.
One line, for example:
- Two sum: I had to remember what I had already seen, so a map was the first thing to try
- Longest substring without repeats: the answer was always a stretch that grows and shrinks, so I kept track of both ends of it
The small change that makes the next one stay
Solve it, write the one line, then come back in two or three days and solve it again with nothing open.
If it comes back, it stays. If it doesn't, the one line tells you exactly which part was never yours.
After that, the more useful test is a different problem that needs the same reason.
A problem you have seen before can be remembered, and a new one can only be worked out, which is where the learning actually shows.
What we tell students honestly
A DSA Framework Session is built around that second test. From the first session itself you can approach a new problem on your own, on any topic, not just the one we worked through together.
Even without daily practice after, you still know how to start, which matters a lot more than remembering any single answer.
The outcome, plainly
Forgetting a solved problem is normal and mostly harmless.
Being unable to start a new one is the thing worth fixing, and the two get mixed up all the time.
Can't tell which of the two is happening to you?
Bring a few problems you have forgotten to the free mentorship call, and we'll tell you plainly whether it is memory or something underneath it.
Think of a problem you solved last month. Can you say, in one sentence, why its solution was the right move?
Until you can solve it on your own.