hone
.sh
Browse topics
Learn
Software
Algorithms
Sliding Window
Sliding Window
Keep a running window over a sequence, growing and shrinking it instead of recomputing from scratch.
01
Best Day to Buy and Sell
easy
Pro
→
02
Highest Average Block
easy
Pro
→
03
Longest Run Without Repeats
medium
Pro
→
04
Longest Repeat After Replacements
medium
Pro
→
05
Find an Anagram Inside
medium
Pro
→
06
Shortest Stretch Reaching a Sum
medium
Pro
→
07
Smallest Window Containing All
hard
Pro
→
08
Maximum in Each Window
hard
Pro
→