Sliding Window

Unit 4 of 15

Foundations

Sliding Window

Answer questions about contiguous subarrays and substrings in one pass: grow the window on the right, shrink it on the left, and never recompute from scratch.

0 of 3 lessons complete, 0 of 7 problems solved

Coursework

36 min

Practice ladder

Start with the first problem, then work toward the harder variations. Run examples before submitting against all tests.

Next unit: Prefix Sums