0/1 Knapsack Problems
28 0/1 Knapsack problems on LeetCode, a Core DP interview pattern, ranked by importance (how often it comes up in real interviews). Difficulty (ELO) and importance shown per problem.
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Partition Equal Subset Sum | Medium | 1548 | 91 | |
| 2 | Target Sum | Medium | 1534 | 88 | Combinations / Subsets |
| 3 | Last Stone Weight II | Hard | 2092 | 82 | |
| 4 | Number of Ways to Earn Points | Hard | 1910 | 74 | Modular Arithmetic |
| 5 | Maximum Profit From Trading StocksPREMIUM | Medium | 1541 | 73 | General Greedy (Greedy is main insight) |
MORE CORE DP PATTERNS
// your mastery





What's your 0/1 Knapsack tier?
leaps.gg syncs your LeetCode history, scores your 0/1 Knapsack mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.
GET MY MASTERY MAP →