Slide a range over a sequence, expanding and shrinking as you go.
Slide a window that never repeats a character and track its longest length.
Longest run you can make uniform with at most k replacements — sliding window.