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
1 pattern

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)

Easy problems
No.Problem
0070Climbing Stairs
0509Fibonacci Number
1137N-th Tribonacci Number

Medium (11)

Medium problems
No.Problem
0139Word Break
0241Different Ways to Add Parentheses
0397Integer Replacement
0464Can I Win
0638Shopping Offers
0698Partition to K Equal Sum Subsets
0894All Possible Full Binary Trees
1387Sort Integers by The Power Value
2311Longest Binary Subsequence Less Than or Equal to K
2998Minimum Number of Operations to Make X and Y Equal
0294Flip Game IIPremium

Hard (25)

Hard problems
No.Problem
0140Word Break II
0329Longest Increasing Path in a Matrix
0488Zuma Game
0546Remove Boxes
0691Stickers to Spell Word
0773Sliding Puzzle
0913Cat and Mouse
0964Least Operators to Express Number
1444Number of Ways of Cutting a Pizza
1553Minimum Number of Days to Eat N Oranges
1569Number of Ways to Reorder Array to Get Same BST
1575Count All Possible Routes
1611Minimum One Bit Operations to Make Integers Zero
1659Maximize Grid Happiness
1728Cat and Mouse II
1815Maximum Number of Groups Getting Fresh Donuts
1857Largest Color Value in a Directed Graph
1900The Earliest and Latest Rounds Where Players Compete
2019The Score of Students Solving Math Expression
2312Selling Pieces of Wood
2318Number of Distinct Roll Sequences
2328Number of Increasing Paths in a Grid
2713Maximum Strictly Increasing Cells in a Matrix
2876Count Visited Nodes in a Directed Graph
2920Maximum Points After Collecting Coins From All Nodes