Sliding window coding challenges

Practise sliding window with 3 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Medium · 1 Hard · 2

Skills you'll practise: Digit stringsFixed-size windowsFrequency mapsGrow and shrink windowsMonotonic dequeO(n) windows
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
226
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

3 challenges
Hard

Minimum Window Substring

Find the shortest piece of text containing all required characters.

You'll learn Grow and shrink windowsFrequency maps
AdvancedCompetitive-programmingSliding-windowStrings
No solutions yet
Hard

Sliding Window Maximum

Report the maximum of every window of k numbers.

You'll learn Monotonic dequeO(n) windows
AdvancedCompetitive-programmingSliding-window
No solutions yet
Medium

Largest Adjacent-Digit Product

Take every contiguous window of span digits and multiply its digits.

You'll learn Fixed-size windowsDigit strings
NumbersSliding-window
No solutions yet