PROBLEMS/GREEDY
Greedy LeetCode Problems
319 hand-tagged Greedy problems across 5 interview patterns (Sorting-Based Greedy, Reachability / Frontier Greedy, Exchange Argument / Local Adjustment, Counter / Balance Greedy, General Greedy (Greedy is main insight)), ranked by importance (how often each pattern shows up in real coding interviews). Work top-down within each pattern.
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Two City Scheduling | Easy | 1348 | 78 | Sorting + Comparison |
| 2 | Hand of Straights | Medium | 1565 | 76 | Frequency Counting / Hash Map Lookup · Sorting + Comparison |
| 3 | Put Marbles in Bags | Hard | 2042 | 68 | Sorting + Comparison · Prefix Sums |
| 4 | Largest Number | Medium | 1538 | 62 | Sorting + Comparison |
| 5 | Queue Reconstruction by Height | Medium | 1658 | 62 | Sorting + Comparison |
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Jump Game | Easy | 1307 | 86 | Linear Recurrence DP |
| 2 | Jump Game II | Medium | 1432 | 86 | Linear Recurrence DP |
| 3 | Gas Station | Medium | 1576 | 82 | Prefix Sums |
| 4 | Eliminate Maximum Number of Monsters | Medium | 1528 | 72 | Sorting + Comparison |
| 5 | Minimum Number of Coins to be Added | Medium | 1784 | 72 | Sorting + Comparison · Prefix Sums |
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Candy | Medium | 1700 | 78 | |
| 2 | Minimize Maximum Pair Sum in Array | Easy | 1301 | 62 | Sorting + Comparison · Opposite-Direction (Converging) |
| 3 | Minimum Deletions to Make Character Frequencies Unique | Medium | 1510 | 62 | Frequency Counting / Hash Map Lookup · Sorting + Comparison |
| 4 | Minimum Time to Make Rope Colorful | Medium | 1574 | 62 | Same-Direction (Fast/Slow on Arrays) |
| 5 | Minimum Increment to Make Array Unique | Medium | 1448 | 58 | Sorting + Comparison |
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Valid Parenthesis String | Medium | 1530 | 78 | Stack-Based Simulation · Linear Recurrence DP |
| 2 | Minimum Number of Swaps to Make the String Balanced | Medium | 1689 | 63 | Stack-Based Simulation |
| 3 | Check if a Parentheses String Can Be Valid | Hard | 2038 | 62 | Stack-Based Simulation · Frequency Counting / Hash Map Lookup |
| 4 | Optimal Partition of String | Easy | 1355 | 61 | Frequency Counting / Hash Map Lookup · Variable-Size Window (Expand/Contract) |
| 5 | Dota2 Senate | Medium | 1639 | 58 | Stack-Based Simulation |
| # | PROBLEM | DIFF | ELO | IMP | PATTERNS |
|---|---|---|---|---|---|
| 1 | Best Time to Buy and Sell Stock II | Easy | 1197 | 82 | Linear Recurrence DP |
| 2 | Lemonade Change | Easy | 1286 | 72 | Frequency Counting / Hash Map Lookup |
| 3 | Increasing Triplet Subsequence | Easy | 1377 | 68 | Longest Increasing Subsequence |
| 4 | Merge Triplets to Form Target Triplet | Medium | 1636 | 68 | |
| 5 | Find the CelebrityPREMIUM | Easy | 1347 | 62 | DFS Connected Components · Frequency Counting / Hash Map Lookup |
EVERY PATTERN
// your mastery





What's your Greedy tier?
leaps.gg syncs your LeetCode history and scores your mastery of every pattern, then recommends the exact problems to do next with spaced repetition. Free to start.
GET MY MASTERY MAP →