moving-avg-eviction-order

Status: IN

In `MovingAverage.next()`, the subtraction of the evicted element must happen before `deque.append()` because `append` on a full `maxlen` deque silently discards `_queue[0]`.

Source: entries/2026/06/06/moving-average-from-data-stream-solution.md

JSON