Problem 2676 · Medium

Throttle

Run a function at most once per window: the first call runs at once, calls inside the window keep only the latest one, which runs when the window closes.

Open the interactive visualisation