Given a stream and a window width, report the maximum of every window as it slides. It is the canonical streaming problem: the answer at each step depends only on a bounded suffix, yet the naive solution stubbornly re-reads the whole window each time. The point of isolating it as its own dart is that the problem is what makes the monotonic-queue mechanism (dart 314) worth its cleverness — and that the two are not the same thing. A dozen correct mechanisms solve this (rescan, a balanced tree, a sparse table, the deque); they agree on every answer. That agreement is exactly the tell the B39 panel named: when many correct mechanisms converge, the shared truth is a property of the problem, witnessed — not a mechanism any one of them enacts.
The first window of the same stream. The demo reports its maximum — a value every correct method agrees on: live demo
“The clever algorithm and the problem it solves are the same idea.” — they are not: the problem admits many correct solutions that all agree, and that agreement is the witness-signature, not the mechanism. cited
Four correct methods, one sequence of answers. The agreement belongs to the problem, not to any solver. streaming extrema
On the canonical compiler, the maximum of the first window [1,3,−1] is 3 — the same value any correct solver returns: