Skip to content

Lesson 26 of 27Practice and polish

Practice That Sticks

Turn problem grinding into a system: one list, time boxes, a mistake log you redo on a schedule, mixed sets, and simulated rounds.

17 min read0/6 questions

Most people who fail coding rounds did practice. They solved 200 problems over three months, felt ready, and then froze on a medium they had "done" six weeks earlier. The problem was not effort. They read solutions and nodded, practiced one topic at a time, never redid anything, and never worked against a clock. That kind of practice feels productive and leaves very little behind.

This lesson is the system that fixes it: which problems to do, how long to fight each one, how to make the lessons from your misses stick, and how to rehearse the real round. Everything here uses the tools on this site, and works just as well with a notebook and LeetCode.

Why grinding feels good and fails

Three habits make practice feel productive while teaching very little.

Reading instead of retrieving. When you read a solution, every line makes sense, so your brain files it as "known". Recognising an answer and producing one are different skills, and an interview only tests the second. Memory research calls this the gap between recognition and recall. The fix is to rebuild solutions from a blank file, not to reread them.

Blocked practice. Doing ten sliding window problems in a row is useful when you first meet the pattern. After that it hides the hardest part of a real round. When the topic is the page title, you never have to decide which pattern applies. In the interview, nobody tells you. Studies of mixed (interleaved) practice keep finding the same thing: practice scores are worse, but later test scores are better, because you practice choosing.

No second attempt. If you solve a problem once and move on, you keep what you understood that day. Without a redo, much of it fades within weeks. A problem you have redone cleanly three times, weeks apart, tends to stay.

The rest of this lesson replaces each habit with a better one.

Pick one list and finish it

Five hundred random problems teach less than 150 chosen ones, because random problems cluster on a few patterns and skip others entirely. A curated list gives you breadth across patterns, which is what an interview samples from. The lists people actually use:

ListSizeGood for
Essentials75The problems of LeetCode's LeetCode 75 plan. The core patterns, mostly easy and medium, for when time is tight
Sprint150LeetCode's Top Interview 150. Broader, with more hard problems and design questions
Deep dive295Both of those, plus enough more that every pattern gets about 20 problems, for when you have months rather than weeks

They overlap heavily, so the choice matters less than finishing. Pick by time: Essentials if you have four to six weeks at an hour a day, Sprint if you have two to three months, Deep dive if you have longer. Switching lists halfway is a common way to end up with two half-finished lists and gaps in both.

On the Practice page, the list buttons above the problem table filter to exactly these three: Essentials, Sprint and Deep dive, and each pattern card shows how many you have solved. That pattern view is your coverage map. A pattern sitting at zero is a hole in your preparation, however many problems you have done elsewhere.

Quick check
Two candidates each practice for two months. A solves 300 random problems, mostly arrays and strings. B finishes the Essentials list and redoes the ones she missed. Who is likely better prepared, and why?
Need a nudge? A hint rules out a wrong answer.

Time boxes: when to stop fighting

Struggle is useful up to a point. Past it, you are just losing time. A simple rule:

  1. Read and plan for up to 10 minutes. Clarify, write a brute force, pick a pattern, using the routine from Getting Unstuck.
  2. Fight for 20 to 25 minutes in total if you are still having new ideas. Progress means new ideas, not staring at the same code.
  3. Once you are stuck past that, take one hint, not the solution. Look at the pattern tag, the first line of an editorial, or a single sentence from a discussion post. Then go back to work.
  4. If one hint is not enough, read the full solution. Understand it well enough to explain each line out loud, then close it.
  5. Re-solve it from a blank file the next day. Not today, while it is fresh. Tomorrow, when you have to rebuild it.

Step 5 is the part almost everyone skips, and it is the one that matters most. Reading a solution is not the end of a failed attempt. It is the start of a scheduled redo.

The time box also has a ceiling for problems you do solve. If an easy problem takes you 50 minutes, count it as a miss and log it. You found the answer, but not at interview speed.

Quick check
You are 30 minutes into a medium. Your last new idea was 15 minutes ago and you keep rewriting the same loop. What should you do?
Need a nudge? A hint rules out a wrong answer.

The mistake log

The single most useful thing you can keep is a log of every problem you did not solve cleanly. A spreadsheet or a plain text file is fine. Each row has:

  • Problem and link.
  • Pattern it turned out to be.
  • The insight you missed, in one sentence. Not "I did not know the answer", but the specific step: "binary search on the speed, not on the piles" or "BFS from all rotten oranges at once".
  • Why you missed it: did not recognise the pattern, recognised it but could not write it, off-by-one, forgot an edge case, ran out of time.
  • Next redo date.

The "insight you missed" column is what makes the log valuable. After twenty rows you will see your own pattern of failure. Maybe you always miss when the answer is binary search on a value range. Maybe your errors are mostly off-by-ones in window bounds. That tells you exactly what to practice next, which a count of solved problems never will.

Redo on a schedule

Redo each logged problem from a blank file at growing gaps: 1 day, then 7 days, then 30 days after the previous clean solve. A clean solve means no hints, within your time box, and passing on the first or second run. If a redo fails, the problem goes back to the 1-day gap. After three clean redos in a row, retire it.

This is spaced repetition. Each redo happens just as the memory is starting to fade, and rebuilding it then makes it last longer than the time before. The growing gaps mean the work does not pile up: most of your log at any moment is waiting, not due.

The life of a missed problem
First attempt: time boxFirst attempttime boxHint, then solution: after 20 to 25 minHint, then solutionafter 20 to 25 minMistake log: missed insightMistake logmissed insightRedo +1 day: blank fileRedo +1 dayblank fileRedo +7 days: blank fileRedo +7 daysblank fileRedo +30 days: blank fileRedo +30 daysblank fileRetired: it stuckRetiredit stuckstuckcleancleancleanfailed

You fight the problem inside the time box. When you are stuck, one hint first, then the full solution if you still need it.

1/5

Here is the scheduling logic as code, so you can see exactly how the dates fall. Change the redo results and run it again.

Pythonmistake_log.py
from datetime import date, timedelta GAPS = [1, 7, 30] # days to wait after the 0th, 1st and 2nd clean redo def next_due(first: date, redos: list[tuple[date, bool]]) -> date | None: stage, last = 0, first for day, ok in redos: stage = stage + 1 if ok else 0 # a failed redo starts the ladder again last = day if stage >= len(GAPS): return None # three clean redos in a row: retired return last + timedelta(days=GAPS[stage]) log = [ # problem, pattern, the insight you missed, first attempt, redos as (date, solved cleanly?) ("Daily Temperatures", "monotonic stack", "scan from the right, keep a stack of candidates", date(2026, 10, 1), [(date(2026, 10, 2), True), (date(2026, 10, 9), True)]), ("Koko Eating Bananas", "binary search on the answer", "search the speed, not the piles", date(2026, 10, 14), [(date(2026, 10, 15), True), (date(2026, 10, 21), False)]), ("Course Schedule", "topological sort", "a cycle means the answer is False", date(2026, 10, 20), []), ("Coin Change", "DP (minimum)", "dp[a] = 1 + min(dp[a - c]) over coins", date(2026, 9, 1), [(date(2026, 9, 2), True), (date(2026, 9, 9), True), (date(2026, 10, 9), True)]),] today = date(2026, 10, 22)for problem, pattern, insight, first, redos in sorted(log, key=lambda r: next_due(r[3], r[4]) or date.max): due = next_due(first, redos) if due is None: status = "retired" elif due <= today: status = "DUE TODAY" if due == today else f"OVERDUE since {due}" else: status = f"next on {due}" print(f"{problem:<20} {pattern:<28} {status}") if due is not None and due <= today: print(f"{'':<20} redo from a blank file. Missed insight: {insight}")
Output
Press Run (⌘ Enter) to see what happens.

Koko Eating Bananas had a clean redo, then failed the 7-day one, so it is back on a 1-day gap. Daily Temperatures has two clean redos, so it waits 30 days. Notice that the printout shows the missed insight only for problems that are due. Read that sentence before the redo, not the solution.

Predict the outputPython

What does this print?

print(next_due(date(2026, 10, 1), [
  (date(2026, 10, 2), True),
  (date(2026, 10, 9), False),
]))
Need a nudge? Hints walk you through it.

The site does the concept half for you

Your mistake log handles whole problems. The Review page handles the ideas underneath them. Every quiz, predict or ordering question you get wrong in a lesson is added there automatically as a card, and you can save terms from the glossary at the end of each lesson. Cards come back after 1, 2, 4, 8, 16 and 32 days. A correct answer moves a card to the next gap, and a miss sends it back to 1 day.

Use both. Start each session by clearing what is due on Review (it takes a few minutes), then do the problems your log says are due. Concepts you cannot recall in a quiz are usually the reason you could not pick the pattern in a problem.

Mix it once the patterns are in

Learn each pattern by topic first. The Practice page pattern cards and the lessons in this course are built for that. Once you have done a few problems in most patterns, switch the bulk of your new problems to mixed sets, where you do not know the pattern before you start.

Ways to make a mixed set:

  • On Practice, choose a list, set the status filter to "To do", and press Random. You get an unsolved problem with no warning about its topic.
  • The Decoder has Surprise me. Stop at the pattern step and commit to a choice before you reveal it. That trains exactly the decision blocked practice skips.
  • Shuffle your redo queue across patterns instead of doing all your graph redos together.

Expect your success rate to drop when you switch. That is the point: you are now practicing the decision, and the drop is the gap you had all along but could not see. Use the routes in The Pattern Map when you choose, and say out loud why you picked a pattern before you write anything.

Rehearse the real round

Solving a problem on your sofa with LeetCode's run button and no clock is a different activity from an interview. Close the gap on purpose, at least once a week.

  • Timer on. About 35 to 40 minutes for a medium, including the talk-through. Many rounds fit one medium plus follow-ups into a 45-minute slot.
  • Talk out loud the whole time, even alone. Narrating while you code is a skill, and it costs speed until you have practiced it.
  • No run button for some sessions. Write the code, then dry-run it by hand on an example before you run anything. Many interviews use a plain editor or a shared doc with no way to execute code.
  • No autocomplete if your interviews will not have it.

The Mock interview on this site gives you this in one click: a random problem you have not solved, a countdown, no pattern label and no hints.

For pressure closer to an online assessment, try LeetCode's weekly and biweekly contests. They are usually four problems in 90 minutes against a ranking, and the clock forces you to decide when to bank a partial answer and move on. Do not judge yourself by contest rank. The last problem is often harder than anything in a typical interview. Use contests to rehearse pacing and calm. For practicing with another person, see Mock Interviews and Prep Plan in the Interview Prep course.

Match the pairs0/5 matched

Match each practice symptom to the fix.

Choose an item, then its match on the other side.

Using AI as a tutor, not a solver

An AI assistant can make practice much faster or make it useless. The difference is who does the thinking. Pasting the problem in and reading the answer is reading a solution with extra steps, and it skips the struggle that makes the pattern stick.

Rules that keep it useful:

  • Never ask for the solution first. Ask for the smallest possible hint: "Do not solve this. What pattern should I consider, in one word?" If that is not enough, ask for one sentence more.
  • Ask it to critique your code, not to write it: "Here is my solution. Do not rewrite it. What input breaks it, and what is the complexity?"
  • Ask it to explain your mistake after you have read the official solution: "I tried sliding window here. Why does it fail when values can be negative?" The answer often becomes the "insight you missed" line in your log.
  • Use it as an interviewer: "Ask me one follow-up question about this solution, then wait for my answer." This is good rehearsal for the follow-ups real rounds include.
  • Check what it says. Models still state wrong complexities and miss edge cases with total confidence. Run their counterexamples.

A useful ladder of prompts, from least to most help:

1. "Do not solve it. Which pattern family is this, in one word?"
2. "Give me one sentence about what to keep track of."
3. "What is the brute force, and which part of it repeats work?"
4. "Here is my attempt. Point at the line that is wrong, without fixing it."
5. "Show the solution. Then quiz me on why each step is needed."

Every step you climb is a hint, so it counts toward logging the problem as a miss. That keeps you honest. Also check each company's policy: some interviews now allow AI tools in certain rounds and others ban them outright, so practice without it often enough to be comfortable either way.

Quick check
Which use of an AI assistant teaches you the most on a problem you are stuck on?
Need a nudge? A hint rules out a wrong answer.

A 6 to 8 week plan at an hour a day

Each daily hour has the same shape:

  • 10 minutes: reviews. Clear what is due on the Review page, then start any redos your log says are due.
  • 40 minutes: one new problem, sometimes two easies. Inside the time box, with the hint rule.
  • 10 minutes: write it up. Log misses, write the one-sentence insight, set the redo date.

Redos take priority over new problems. If your log is due for three redos today, do them instead of new work. That feels slow, but redos are where the learning actually lands.

Six to eight weeks, one list
  1. Weeks 1-2

    Arrays and searching, by topic

    Hashing, two pointers, sliding window, stack, binary search. Do these in pattern order from your list. Start the mistake log on day one.

  2. Weeks 3-4

    Structures, by topic

    Linked lists, trees, heaps, graphs (BFS, DFS, topological sort). Redos from weeks 1 and 2 start coming due. Do them first.

  3. Week 5

    Choices and counting

    Backtracking, intervals, greedy, 1D dynamic programming. Start one mixed problem every other day with Random.

  4. Week 6

    Switch to mixed

    2D DP and anything left on the list, then mostly mixed sets. Say the pattern and why before coding. Do one timed Mock interview at the weekend.

  5. Weeks 7-8

    Simulate and patch

    Two or three timed rounds a week, some with no run button, plus a contest if you can. Use the log to target your weakest pattern. Keep redos going.

At this pace you will finish about 75 new problems plus their redos, which fits the Sprint list, or most of Essentials. If you have longer, keep the same daily shape and move on to the extra problems in Deep dive, rather than starting over on a new list. If you have less time, cut new problems, not redos. Twenty problems you can rebuild are worth more than sixty you once read.

Put it in order6 steps

Put the steps for handling a problem you could not solve in order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.

That is the whole system: one list, a time box, a log and spaced redos. The wrap-up that follows runs one fresh problem through every step of this course, so you can see the routine you are practicing from start to finish.

Key terms
retrieval practice
Rebuilding an answer from memory, such as redoing a solution from a blank file, rather than rereading it.
spaced repetition
Reviewing at growing gaps (for example 1, 7 and 30 days) so each review lands just as the memory starts to fade.
mistake log
A record of every problem you did not solve cleanly, with the pattern, the one insight you missed, and the next redo date.
interleaving
Mixing problems from different patterns in one session, so you practice choosing the pattern, not just applying it.
time box
A fixed limit, about 20 to 25 minutes stuck, after which you take a hint instead of losing more time.
clean solve
Solving without hints, inside the time box, passing on the first or second run. Only clean solves move a redo forward.
simulated round
Practice under interview conditions: a timer, talking out loud, and sometimes no run button or autocomplete.