leaps.ggTRACK YOUR MASTERY →
PROBLEMS/SLIDING WINDOW

Sliding Window LeetCode Problems

122 hand-tagged Sliding Window problems across 3 interview patterns (Fixed-Size Window, Variable-Size Window (Expand/Contract), Window with Monotonic Deque), ranked by importance (how often each pattern shows up in real coding interviews). Work top-down within each pattern.

Fixed-Size Window

41 problems →
#PROBLEMDIFFELOIMPPATTERNS
1Find All Anagrams in a StringEasy135886
Frequency Counting / Hash Map Lookup
2Permutation in StringEasy136886
Frequency Counting / Hash Map Lookup
3Distinct Numbers in Each SubarrayPREMIUMEasy128278
Frequency Counting / Hash Map Lookup
4Maximum Average Subarray IEasy110772
Prefix Sums
5Maximum Number of Vowels in a Substring of Given LengthEasy126372
+ 36 more Fixed-Size Window problems →

Variable-Size Window (Expand/Contract)

78 problems →
#PROBLEMDIFFELOIMPPATTERNS
1Minimum Window SubstringMedium159495
Frequency Counting / Hash Map Lookup
2Longest Substring Without Repeating CharactersEasy130193
Frequency Counting / Hash Map Lookup
3Longest Repeating Character ReplacementMedium157188
Frequency Counting / Hash Map Lookup
4Max Consecutive Ones IIIMedium165688
Same-Direction (Fast/Slow on Arrays)
5Minimum Size Subarray SumEasy132587
Binary Search on Answer Space · Prefix Sums
+ 73 more Variable-Size Window (Expand/Contract) problems →

Window with Monotonic Deque

3 problems →
#PROBLEMDIFFELOIMPPATTERNS
1Sliding Window MaximumMedium176388
Fixed-Size Window
2Max Value of EquationHard245655
Heap Simulation
3K Empty SlotsPREMIUMHard199237
Sorting + Comparison · Boundary Finding (Bisect Left/Right)
EVERY PATTERN
Arrays & HashingTwo PointersStackBinary SearchSliding WindowLinked ListTreesTriesBacktrackingHeap / Priority QueueGraphsCore DPIntervalsGreedyAdvanced GraphsAdvanced DPBit ManipulationMath & Geometry
// your mastery
Bronze tier crystalSilver tier crystalGold tier crystalPlatinum tier crystalDiamond tier crystal
What's your Sliding Window tier?

leaps.gg syncs your LeetCode history and scores your mastery of every pattern, then recommends the exact problems to do next with spaced repetition. Free to start.

GET MY MASTERY MAP →