leaps.ggTRACK YOUR MASTERY →
PROBLEMS/GREEDY/SORTING-BASED GREEDY

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.

#PROBLEMDIFFELOIMPPATTERNS
1Two City SchedulingEasy134878
Sorting + Comparison
2Hand of StraightsMedium156576
Frequency Counting / Hash Map Lookup · Sorting + Comparison
3Put Marbles in BagsHard204268
Sorting + Comparison · Prefix Sums
4Largest NumberMedium153862
Sorting + Comparison
5Queue Reconstruction by HeightMedium165862
Sorting + Comparison
+ 89 more Sorting-Based Greedy problems, see all in the explorer →
MORE GREEDY PATTERNS
Sorting-Based GreedyReachability / Frontier GreedyExchange Argument / Local AdjustmentCounter / Balance GreedyGeneral Greedy (Greedy is main insight)
// your mastery
Bronze tier crystalSilver tier crystalGold tier crystalPlatinum tier crystalDiamond tier crystal
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 →