Problem editorialmedium
Distinct elements in every window
Neighbouring windows share almost everything. Do not recount — track only what leaves and what enters, and keep a running tally.
19 min read·time O(N)·space O(B)
Fixed windowFrequency mapAdd/remove delta