Loading page…
Interview problems read their answer from the counts inside a window. The move is to keep a summary beside the counts, so each change updates the answer in constant time. The lecture covers the peak and its holders table, why it must fall only when alone, and a window width that comes from the data.
The problems on this street read their answer from counts in a window.