Memoization LeetCode Problems: All 39,
With Python Solutions
Every problem in this library that LeetCode tags Memoization. 38 of them carry a complete Python solution, a worked example and the time and space complexity of the approach.
- Easy
- 3
- Medium
- 11
- Hard
- 25
How Memoization problems are solved
A tag names the subject, not the method. These pattern hubs cover the techniques that actually solve Memoization problems — each one explains the approach, gives a Python template and states its complexity.
Eyes only
When the Memoization problem arrives live.
In the live round, Stealth Interview reads the problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer says. It's a desktop app for macOS and Windows, invisible to screen sharing.
Memoization problems by difficulty
Problems with a complete Python solution are listed first, then by ascending problem number.
Easy (3)
| No. | Problem | Topics |
|---|---|---|
| 0070 | Climbing Stairs | |
| 0509 | Fibonacci Number | |
| 1137 | N-th Tribonacci Number |
Medium (11)
| No. | Problem | Topics |
|---|---|---|
| 0139 | Word Break | |
| 0241 | Different Ways to Add Parentheses | |
| 0397 | Integer Replacement | |
| 0464 | Can I Win | |
| 0638 | Shopping Offers | |
| 0698 | Partition to K Equal Sum Subsets | |
| 0894 | All Possible Full Binary Trees | |
| 1387 | Sort Integers by The Power Value | |
| 2311 | Longest Binary Subsequence Less Than or Equal to K | |
| 2998 | Minimum Number of Operations to Make X and Y Equal | |
| 0294 | Flip Game IIPremium |
Hard (25)
Keep exploring
Other topics
- Array1,569
- String672
- Hash Table588
- Math485
- Dynamic Programming481
- Sorting392
- Greedy346
- Depth-First Search289
- Binary Search253
- Database249
- Tree225
- Breadth-First Search223
- Matrix216
- Two Pointers201
- Bit Manipulation194
- Binary Tree174
- Heap (Priority Queue)163
- Prefix Sum157
- Stack157
- Simulation144
- Graph138
- Counting126
- Design122
- Sliding Window116