Variable-Size Window (Expand/Contract) Problems
78 Variable-Size Window (Expand/Contract) problems on LeetCode, a Sliding Window 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 | Minimum Window Substring | Medium | 1594 | 95 | Frequency Counting / Hash Map Lookup |
| 2 | Longest Substring Without Repeating Characters | Easy | 1301 | 93 | Frequency Counting / Hash Map Lookup |
| 3 | Longest Repeating Character Replacement | Medium | 1571 | 88 | Frequency Counting / Hash Map Lookup |
| 4 | Max Consecutive Ones III | Medium | 1656 | 88 | Same-Direction (Fast/Slow on Arrays) |
| 5 | Minimum Size Subarray Sum | Easy | 1325 | 87 | Binary Search on Answer Space · Prefix Sums |
MORE SLIDING WINDOW PATTERNS
// your mastery





What's your Variable-Size Window (Expand/Contract) tier?
leaps.gg syncs your LeetCode history, scores your Variable-Size Window (Expand/Contract) mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.
GET MY MASTERY MAP →