# Memoization DSA Problems

> 40 Memoization coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

Canonical: https://www.internhack.in/learn/dsa/memoization
Last updated: 2026-11-28

40 memoization problems for coding interviews and campus placements, with hints and company tags. Below are all 40: 3 easy, 12 medium and 25 hard. Practise them free on InternHack and track what you have solved.

## Memoization problems, easiest first

1. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
2. [Fibonacci Number](https://www.internhack.in/learn/dsa/problem/fibonacci-number) (Easy)
3. [N-th Tribonacci Number](https://www.internhack.in/learn/dsa/problem/n-th-tribonacci-number) (Easy)
4. [All Possible Full Binary Trees](https://www.internhack.in/learn/dsa/problem/all-possible-full-binary-trees) (Medium)
5. [Can I Win](https://www.internhack.in/learn/dsa/problem/can-i-win) (Medium)
6. [Different Ways to Add Parentheses](https://www.internhack.in/learn/dsa/problem/different-ways-to-add-parentheses) (Medium)
7. [Flip Game II](https://www.internhack.in/learn/dsa/problem/flip-game-ii) (Medium)
8. [Integer Replacement](https://www.internhack.in/learn/dsa/problem/integer-replacement) (Medium)
9. [Longest Binary Subsequence Less Than or Equal to K](https://www.internhack.in/learn/dsa/problem/longest-binary-subsequence-less-than-or-equal-to-k) (Medium)
10. [Maximum Number of Operations With the Same Score II](https://www.internhack.in/learn/dsa/problem/maximum-number-of-operations-with-the-same-score-ii) (Medium)
11. [Minimum Number of Operations to Make X and Y Equal](https://www.internhack.in/learn/dsa/problem/minimum-number-of-operations-to-make-x-and-y-equal) (Medium)
12. [Partition to K Equal Sum Subsets](https://www.internhack.in/learn/dsa/problem/partition-to-k-equal-sum-subsets) (Medium)
13. [Shopping Offers](https://www.internhack.in/learn/dsa/problem/shopping-offers) (Medium)
14. [Sort Integers by The Power Value](https://www.internhack.in/learn/dsa/problem/sort-integers-by-the-power-value) (Medium)
15. [Word Break](https://www.internhack.in/learn/dsa/problem/word-break) (Medium)
16. [Cat and Mouse](https://www.internhack.in/learn/dsa/problem/cat-and-mouse) (Hard)
17. [Cat and Mouse II](https://www.internhack.in/learn/dsa/problem/cat-and-mouse-ii) (Hard)
18. [Count Visited Nodes in a Directed Graph](https://www.internhack.in/learn/dsa/problem/count-visited-nodes-in-a-directed-graph) (Hard)
19. [Find Number of Ways to Reach the K-th Stair](https://www.internhack.in/learn/dsa/problem/find-number-of-ways-to-reach-the-k-th-stair) (Hard)
20. [Largest Color Value in a Directed Graph](https://www.internhack.in/learn/dsa/problem/largest-color-value-in-a-directed-graph) (Hard)
21. [Least Operators to Express Number](https://www.internhack.in/learn/dsa/problem/least-operators-to-express-number) (Hard)
22. [Length of Longest V-Shaped Diagonal Segment](https://www.internhack.in/learn/dsa/problem/length-of-longest-v-shaped-diagonal-segment) (Hard)
23. [Longest Increasing Path in a Matrix](https://www.internhack.in/learn/dsa/problem/longest-increasing-path-in-a-matrix) (Hard)
24. [Maximize Grid Happiness](https://www.internhack.in/learn/dsa/problem/maximize-grid-happiness) (Hard)
25. [Maximum Number of Groups Getting Fresh Donuts](https://www.internhack.in/learn/dsa/problem/maximum-number-of-groups-getting-fresh-donuts) (Hard)
26. [Maximum Points After Collecting Coins From All Nodes](https://www.internhack.in/learn/dsa/problem/maximum-points-after-collecting-coins-from-all-nodes) (Hard)
27. [Minimum Number of Days to Eat N Oranges](https://www.internhack.in/learn/dsa/problem/minimum-number-of-days-to-eat-n-oranges) (Hard)
28. [Minimum One Bit Operations to Make Integers Zero](https://www.internhack.in/learn/dsa/problem/minimum-one-bit-operations-to-make-integers-zero) (Hard)
29. [Number of Distinct Roll Sequences](https://www.internhack.in/learn/dsa/problem/number-of-distinct-roll-sequences) (Hard)
30. [Number of Increasing Paths in a Grid](https://www.internhack.in/learn/dsa/problem/number-of-increasing-paths-in-a-grid) (Hard)
31. [Number of Ways of Cutting a Pizza](https://www.internhack.in/learn/dsa/problem/number-of-ways-of-cutting-a-pizza) (Hard)
32. [Number of Ways to Reorder Array to Get Same BST](https://www.internhack.in/learn/dsa/problem/number-of-ways-to-reorder-array-to-get-same-bst) (Hard)
33. [Remove Boxes](https://www.internhack.in/learn/dsa/problem/remove-boxes) (Hard)
34. [Selling Pieces of Wood](https://www.internhack.in/learn/dsa/problem/selling-pieces-of-wood) (Hard)
35. [Sliding Puzzle](https://www.internhack.in/learn/dsa/problem/sliding-puzzle) (Hard)
36. [Stickers to Spell Word](https://www.internhack.in/learn/dsa/problem/stickers-to-spell-word) (Hard)
37. [The Earliest and Latest Rounds Where Players Compete](https://www.internhack.in/learn/dsa/problem/the-earliest-and-latest-rounds-where-players-compete) (Hard)
38. [The Score of Students Solving Math Expression](https://www.internhack.in/learn/dsa/problem/the-score-of-students-solving-math-expression) (Hard)
39. [Word Break II](https://www.internhack.in/learn/dsa/problem/word-break-ii) (Hard)
40. [Zuma Game](https://www.internhack.in/learn/dsa/problem/zuma-game) (Hard)

## Companies that ask memoization problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 29 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 22 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 16 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 15 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 12 of these problems
- [Uber](https://www.internhack.in/learn/dsa/companies/uber): 7 of these problems
- [Apple](https://www.internhack.in/learn/dsa/companies/apple): 6 of these problems
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok): 5 of these problems
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe): 4 of these problems
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia): 4 of these problems
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle): 4 of these problems
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin): 4 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [String](https://www.internhack.in/learn/dsa/string) (775)
- [Hash Table](https://www.internhack.in/learn/dsa/hash-table) (708)
- [Math](https://www.internhack.in/learn/dsa/math) (564)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA](https://www.internhack.in/learn/dsa)
