Lesson 150 of 296
Timed mixed practice
What you will learn
- Why mixed, timed practice is essential
- A weekly routine
- How to practise a single problem properly
- Spaced repetition
- A list of the core problems by pattern
- What to do on the day of the test
On this page
Why mixed practice?
Practising one pattern at a time (all sliding window problems in a row) is good for learning, but real tests do not tell you the pattern. Recognising which pattern a problem needs is the actual skill being tested. So, after learning the patterns, practise mixed problems against the clock.
Target: solve a medium problem in about 25 to 30 minutes, while talking out loud.
A weekly routine
| Day | Activity |
|---|---|
| 3 to 4 days a week | 2 new problems from the list below, untimed, focused on understanding |
| 1 day | Re-solve 3 to 4 old problems from a blank file (spaced repetition) |
| 1 day | A timed set: 2 medium problems, 60 minutes, no hints, talking aloud (record yourself) |
| Weekly | One mock interview with a person (Part 25) |
Use NeetCode 150 (a curated list of LeetCode problems grouped by pattern) as your main list. Practise in TypeScript, in an editor without auto-complete or AI, like the real test environment.
How to practise one problem properly
- Set a timer for 25 minutes.
- Follow the 7-step method (Lesson 117) out loud: clarify, examples, brute force, optimise, code, test, analyse.
- If stuck after about 20 minutes, read only the hint or the pattern name, then try again.
- If still stuck, read the solution, close it, and write it yourself from memory.
- Write a short note in your mistake log (Part 25): the pattern, the key idea in one sentence, and what you missed.
- Re-solve it from a blank file after 3 days, then after 1 week, then after 1 month.
A problem is "done" only when you can solve it cold, explain it, and answer follow-up questions.
Spaced repetition
You forget most of what you learn within days unless you review it. Reviewing at growing intervals (3 days, 1 week, 1 month) moves it into long-term memory. Track each problem's next review date in your tracker (for example Notion).
Core problems by pattern
| Pattern | Problems (LeetCode numbers) |
|---|---|
| Hashing | Two Sum (1), Contains Duplicate (217), Valid Anagram (242), Group Anagrams (49), Top K Frequent (347), Longest Consecutive Sequence (128) |
| Arrays | Product of Array Except Self (238), Rotate Image (48), Spiral Matrix (54) |
| Two pointers | Valid Palindrome (125), Two Sum II (167), 3Sum (15), Container With Most Water (11), Trapping Rain Water (42) |
| Sliding window | Best Time to Buy and Sell Stock (121), Longest Substring Without Repeating (3), Longest Repeating Character Replacement (424), Minimum Window Substring (76) |
| Prefix sums | Range Sum Query (303), Subarray Sum Equals K (560) |
| Stack | Valid Parentheses (20), Min Stack (155), Evaluate RPN (150), Daily Temperatures (739) |
| Binary search | Binary Search (704), Search in Rotated Sorted Array (33), Find Min in Rotated (153), Koko Eating Bananas (875) |
| Linked list | Reverse Linked List (206), Merge Two Sorted Lists (21), Linked List Cycle (141), Remove Nth From End (19), Reorder List (143), LRU Cache (146) |
| Trees | Max Depth (104), Invert Tree (226), Same Tree (100), Level Order (102), Validate BST (98), LCA of BST (235), Kth Smallest in BST (230), Diameter (543) |
| Heap | Kth Largest (215), K Closest Points (973), Merge K Sorted Lists (23), Find Median from Data Stream (295) |
| Backtracking | Subsets (78), Permutations (46), Combination Sum (39), Word Search (79), N-Queens (51) |
| Graphs | Number of Islands (200), Clone Graph (133), Course Schedule (207), Rotting Oranges (994), Network Delay Time (743) |
| Intervals and greedy | Merge Intervals (56), Insert Interval (57), Non-overlapping Intervals (435), Meeting Rooms II (253), Jump Game (55), Maximum Subarray (53) |
| Dynamic programming | Climbing Stairs (70), House Robber (198), Coin Change (322), Longest Increasing Subsequence (300), Unique Paths (62), Longest Common Subsequence (1143), Word Break (139) |
| Tries and bits | Implement Trie (208), Word Search II (212), Single Number (136), Counting Bits (338) |
Every one of these is explained in this part.
On the day of the test
- Test your setup: camera, microphone, internet, the coding platform. Have water and paper.
- Read the whole problem and the constraints before typing.
- In online assessments (HackerRank, Codility), hidden test cases check edge cases and performance: test empty input, one item, duplicates, negatives and large inputs yourself.
- Manage time: if a problem is taking too long, submit a working brute force first, then improve it.
- In live rounds: talk, ask, and never stay silent for long. A good process with a small bug often passes; silent perfect code sometimes does not.
How to say it in an interview
(When asked how you prepared.) "I learned DSA by pattern, then practised mixed timed sets of medium problems in TypeScript without AI, aiming for about 25 to 30 minutes per problem while talking through my approach. I keep a mistake log and re-solve problems from a blank file after three days, a week and a month, so I can solve them cold and explain the trade-offs."
Key words
| Word | Meaning |
|---|---|
| Mixed practice | Problems from different patterns without labels |
| Spaced repetition | Reviewing at growing intervals to remember long term |
| NeetCode 150 | A popular curated list of interview problems by pattern |
| Online assessment | An automated coding test with hidden test cases |
| Mistake log | A record of errors and what to fix |
Now prove it
This lesson is complete when you pass the quiz and all three practice levels.