{"id":"deque-sliding-window-pattern","text":"Sliding window problems use `collections.deque` with front-eviction for O(1) amortized operations, relying on the invariant that inputs arrive in sorted order so stale entries are always at the front","truth_value":"IN","source":"entries/2026/06/06/number-of-recent-calls-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"deque-sliding-window-pattern","truth_value":"IN","reason":"premise"}]}}