leaps.ggTRACK YOUR MASTERY →
PROBLEMS/GREEDY/COUNTER / BALANCE GREEDY

Counter / Balance Greedy Problems

8 Counter / Balance 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
1Valid Parenthesis StringMedium153078
Stack-Based Simulation · Linear Recurrence DP
2Minimum Number of Swaps to Make the String BalancedMedium168963
Stack-Based Simulation
3Check if a Parentheses String Can Be ValidHard203862
Stack-Based Simulation · Frequency Counting / Hash Map Lookup
4Optimal Partition of StringEasy135561
Frequency Counting / Hash Map Lookup · Variable-Size Window (Expand/Contract)
5Dota2 SenateMedium163958
Stack-Based Simulation
+ 3 more Counter / Balance 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 Counter / Balance Greedy tier?

leaps.gg syncs your LeetCode history, scores your Counter / Balance Greedy mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.

GET MY MASTERY MAP →