A year after solving a coding problem, engineers who came back to it got it right without a single failing run 26.5% of the time. On a first attempt at a problem, the figure was 24.3%. By then, a problem you solved is close to a problem you've never seen.
Most of that loss doesn't happen early. Returns within 30 days were clean 38 to 40% of the time, about the same two days after the last solve as four weeks after. The slide starts after the first month.
I run Firecode, and every Run and Submit on it since 2021 is logged with its outcome. That record covers 1,770 engineers, 34,060 first attempts and 36,349 returns to problems someone had already passed. I wanted to know what everyone grinding problems quietly worries about: how much of this survives until the interview?
What counts as solving it cleanly
Almost everyone gets a problem to pass eventually: between 97 and 99% of attempts end with passing tests. So pass rate tells you nothing. The useful question is whether you got it right without a single failing run.
I call that a clean solve: every time you pressed Run or Submit, the tests passed. On a first attempt, 24.3% of solves are clean, and the rest take an average of 3.85 failing runs before they pass. A return is any attempt that starts at least a day after the engineer last passed that problem.
The forgetting curve for coding problems
| Days since you last solved it | Returns | Engineers | Clean solves | Clean solves, strictest count | Failing runs before passing |
|---|---|---|---|---|---|
| First attempt | 34,060 | 1,770 | 24.3% | 24.3% | 3.85 |
| 1-3 days | 11,150 | 777 | 40.0% | 26.4% | 2.1 |
| 4-7 days | 7,250 | 640 | 39.3% | 26.8% | 2.0 |
| 8-14 days | 5,073 | 535 | 39.4% | 27.3% | 2.0 |
| 15-30 days | 4,122 | 416 | 38.5% | 28.1% | 2.25 |
| 1-3 months | 4,491 | 375 | 33.9% | 25.4% | 2.54 |
| 3-12 months | 3,032 | 285 | 33.5% | 26.1% | 2.49 |
| Over a year | 1,231 | 165 | 26.5% | 21.2% | 3.5 |
The strictest-count column exists because, until October 2026, the editor offered to load your saved solution when you reopened a problem. Some returns are that: load, submit, pass. Comparing code byte for byte, 18.5% of passing returns at 1-3 days are identical to the previous solution, falling to 6.7% after a year. The strictest count treats every identical resubmission as a reload and drops it. The real number sits between the two columns.
Three things hold in either column:
- Even a few days later, most returns hit a failing run: at least 6 in 10, and up to 3 in 4 on the strict count. A problem you solved on Monday is not a problem you can type out on Thursday.
- The first month is flat. Clean solves barely move between day 1 and day 30. If you're going to revisit a problem, nothing is lost by waiting a few weeks.
- After a year, you're starting over: 26.5% clean against 24.3% on a first attempt, and 3.5 failing runs against 3.85. On the strict count, it's worse than the first time.
What engineers say about their own memory
After a solve, engineers rate how it felt on a four-step scale. The labels have changed over the years; today they read No chance, Tough, Comfortable and Too easy. These are the ratings on problems people had solved before.
| Days since the last rated solve | Ratings | Engineers | No chance | Tough | Comfortable | Too easy |
|---|---|---|---|---|---|---|
| 1-3 days | 9,449 | 729 | 5.5% | 16.2% | 40.5% | 37.7% |
| 4-7 days | 6,414 | 618 | 3.8% | 13.4% | 40.3% | 42.5% |
| 8-14 days | 4,586 | 508 | 4.4% | 14.1% | 38.0% | 43.5% |
| 15-30 days | 3,670 | 383 | 5.7% | 14.7% | 34.8% | 44.8% |
| 1-3 months | 3,974 | 347 | 5.0% | 17.1% | 38.1% | 39.8% |
| 3-12 months | 2,680 | 271 | 8.4% | 19.3% | 37.6% | 34.7% |
| Over a year | 1,049 | 155 | 8.4% | 21.1% | 40.2% | 30.3% |
The same shape, from a different signal. No chance or Tough sits around 18 to 22% for the first month, reaches 28% by the 3-12 month mark and 30% after a year. Too easy peaks at 45% around the one-month mark, then falls to 30%.
Notice the gap between the two tables. A year out, 70% of the ratings were still Comfortable or Too easy, while only about a quarter got through it without a failing run. People remember having solved it. They don't remember how.
Which LeetCode patterns you forget fastest
Not every pattern fades at the same rate. Here are clean solves on returns within a week against returns after a month or more. Restored solutions also drop across that span, by about 7 points, so a pattern needs to fall by more than that before the drop says much.
| Pattern | Clean, within a week | Clean, after a month | Drop | Share lost | Engineers after a month |
|---|---|---|---|---|---|
| Dynamic programming | 39.2% | 27.8% | 11.4 pts | 29% | 131 |
| Two pointers | 30.7% | 22.4% | 8.3 pts | 27% | 106 |
| Binary search tree | 37.5% | 27.9% | 9.6 pts | 26% | 98 |
| Matrix | 36.0% | 27.5% | 8.5 pts | 24% | 210 |
| Stack | 47.6% | 38.4% | 9.2 pts | 19% | 209 |
| Binary tree | 49.3% | 40.1% | 9.2 pts | 19% | 270 |
| Hash table | 31.5% | 25.8% | 5.7 pts | 18% | 292 |
| Sliding window | 25.1% | 21.1% | 4.0 pts | 16% | 133 |
| Fast and slow pointers | 26.2% | 22.9% | 3.3 pts | 13% | 145 |
| Linked list | 34.0% | 30.0% | 4.0 pts | 12% | 371 |
| Math | 39.2% | 35.0% | 4.2 pts | 11% | 222 |
Dynamic programming loses the most, in points and in share. Within a week, a DP return is about as clean as any other; after a month it drops to the level of patterns that were always hard. That fits how DP is usually solved: you remember the answer's shape but not the recurrence, and the recurrence is the whole problem.
Two pointers and binary search trees lose a quarter or more of their clean solves too. Each hinges on one invariant (which pointer moves, what's true of everything left of a node), and the invariant goes first. Stack and binary tree problems drop as many points, but from a higher start, so they lose a smaller share.
Linked lists, math and fast and slow pointers barely move. The drop is within what restored solutions alone account for. Those problems are mostly mechanics, and mechanics last.
Sliding window is its own case: it doesn't fade much because it never gets easy. A first attempt is clean 16.5% of the time, a return 23.2%. Two pointers is close behind at 17.7% and 27.8%. If you have one week, those are the two patterns where a re-solve is most likely to catch a gap.
Easy, Medium and Hard problems
| Difficulty | First attempt, clean | Return within a week | Return after 1-4 weeks | Return after a month |
|---|---|---|---|---|
| Easy | 24.9% | 40.8% | 40.1% | 33.6% |
| Medium | 21.2% | 32.1% | 30.9% | 27.3% |
| Hard | 11.1% | 20.5% | too few | too few |
Medium problems start lower and end lower, but the drop is no steeper than for Easy ones. Hard problems take 6.89 failing runs to pass on a first attempt, almost twice the 3.85 average across all problems. There weren't enough Hard returns past a week to report.
What to do with this
Re-solve, don't reread. Every number here comes from writing the code again with tests running. Rereading an old solution feels like knowing it, and it never tests whether you can write it.
Come back after a few weeks, not a few days. The first month is flat, so a re-solve on day 3 mostly measures your short-term memory. The drop starts around one month, so that is the time to re-solve: late enough to test you, early enough that the idea comes back with a little effort.
Revisit anything older than a year as if it were new. The data says it is.
Put dynamic programming, two pointers and binary search trees first in your review queue, and give sliding window more first-time practice than you think it needs.
Doing that by hand means a spreadsheet of every problem, its last solve date and its pattern, and nobody keeps one up past the first busy week. Firecode's learning engine does that bookkeeping for you: it tracks every problem you've solved and brings each one back when it's due, sooner for the ones you struggled with, so you can still solve it on interview day.
How the study was done, and its limits
The data is every Run and Submit recorded on Firecode from June 2021 to November 2026, with test and staff accounts removed. A sitting is one engineer's consecutive runs on one problem, split after 6 hours of inactivity. An attempt is a sitting with at least one Submit. Every table row covers at least 30 engineers and 100 attempts.
The limits, plainly:
- Restored solutions: until October 2026 you could reload your saved code. The strictest-count column takes those out under the harshest assumption. Since the reload was removed, returns have been 33.9% clean against 30.2% for first attempts, but from only 26 engineers, too few to stand on its own.
- A failing run isn't always a mistake. Some people run half-finished code to see where they are. The rule is the same for first attempts and returns, so the comparison holds even if the absolute numbers look low.
- Returns aren't random. The engine brings back problems people struggled with sooner, which pulls short-gap numbers down.
- Mostly Easy problems, mostly from 2021-2023: 88% of first attempts were Easy-band problems, and 81% of returns happened between 2021 and 2023.
- No language breakdown. The logs don't record the language of each run reliably enough to split by it.
- Patterns overlap. A problem tagged both binary tree and recursion counts in both. Differences under 5 points are noise.
Frequently asked questions
How fast do you forget LeetCode solutions?
Slower than it feels in the first month, and almost completely within a year. In this data, returns within 30 days were solved without a failing run 38 to 40% of the time, against 24.3% on a first attempt. After a year it was 26.5%, about the same as never having seen the problem.
How often should you redo LeetCode problems?
Once a few weeks after the first solve, and again before your interviews. Clean re-solves barely changed in the first 30 days and started falling after a month, so a re-solve at around three to four weeks is the useful one. Anything you last solved more than a year ago needs practice as if it were new.
Which LeetCode patterns are forgotten fastest?
Dynamic programming, two pointers, binary search trees and matrix problems lost the largest share of clean solves between a return within a week and one after a month: 24 to 29%, or 8 to 11 points. Linked lists, math and fast and slow pointers barely changed.
Is it normal to forget a LeetCode problem I already solved?
Yes. Even one to three days after solving a problem, at least 60% of returns in this study hit a failing run before passing. What usually goes is the one idea the solution depends on, not the code around it.
Does re-solving problems actually help?
Re-solves within a year were cleaner than first attempts on the raw count (34 to 40% against 24.3%) and took fewer failing runs (2.0 to 2.5 against 3.85). Under the strictest count, which removes every possible reloaded solution, the advantage shrinks to a few points. Rereading a solution never tests recall at all, so a re-solve from an empty editor is the only version of review this data can speak to.