Problem 424 · Medium
Sliding window: expand right, shrink left when (window size − max frequency) > k.
Open the interactive visualisation