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.
| # | 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 |
MORE GREEDY PATTERNS
// your mastery





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 →