Loading page…
A dashboard needs the slowest and fastest reading of a moving window. A monotonic deque keeps positions whose values fall, so its front is the maximum, and a rising deque gives the minimum. The lecture covers trimming the back, expiring the front, the cost, a window whose size follows a limit on the spread, counting runs, a deque over computed totals, prefix totals for negative numbers, and the classic mistakes.
A monitoring dashboard shows the slowest and the fastest response time of the last five minutes.