Skip to content
Search & scan line

Sliding Window problems

Questions about a run of neighboring items: the longest, the shortest, or the best one. The run's two edges only move forward, so each item enters it once and leaves it once.

The 6 problems

In the order the app teaches them. Each page has the problem, five hints and the explained solution.

On the roadmap

Sliding Window is a station on the search & scan line. It builds on Two Pointers. Next comes Binary Search.

The roadmap says why each line runs in its order.

Patterns

3 patterns solve these problems. Naming them gives the problems’ methods away, so the list is folded.

Show the 3

Keep going