Sorting-Based Greedy Problems
94 Sorting-Based Greedy problems on LeetCode, a Greedy 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 | 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 |
MORE GREEDY PATTERNS
// your mastery





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