Loop
Dashboard

Tracks

Data Structures & AlgorithmsSystem DesignInterview PlaybookAI Engineering with Claude
ProblemsProgress
0-day streak
Loop
  1. Data Structures & Algorithms
  2. Sliding Window

Sliding Window

Fixed and elastic windows over arrays and strings, plus the monotonic deque for window maximums.

0 of 7 lessons complete · 138 min total

Start module
  1. Windows: Fixed vs Grow-and-ShrinkThe two flavors — exactly-k windows and longest/shortest valid windows — and the monotone-condition requirement that makes shrinking safe.Lesson · 16 minNot completed
  2. The Fixed Window SlideConstant-size windows updated in O(1) per step.Animation · 9 minNot completed
  3. The Elastic WindowExpand until invalid, shrink until valid — made visceral.Animation · 10 minNot completed
  4. Monotonic Deque: Window Max in O(n)Why a deque of falling values answers every window's max instantly.Animation · 10 minNot completed
  5. Practice: Longest Valid WindowsOne-pass min tracking and the grow-and-shrink rhythm.easymedium×23 problems · 0 solvedPractice · 40 minNot completed
  6. Practice: Counted Windows & DequesFrequency-matched windows, the need-vs-have minimum window, and the deque-powered maximum.mediumhard×23 problems · 0 solvedPractice · 45 minNot completed
  7. Sliding Window CheckpointFixed vs variable windows, monotone conditions, and when a deque replaces a heap.Checkpoint · 8 minNot completed
Previous moduleTwo PointersNext moduleStack

© 2026 Kitchen Labs

PrivacySupport