Skip to main content
CRUCIBLE

Timed Cold Drill Arena

74 PYTHON, POSTGRESQL & DSA DRILLS · PYODIDE & PGLITE WASM
15:00
0 / 74 DRILLS PASSED (0%)PYODIDE WASM · 100% BROWSER-NATIVE
M04 · PYTHON COLD DRILL · PYODIDE WASM SANDBOXDSA · Sliding Window Maximum (Monotonic Deque O(N))

Implement max_sliding_window(nums: list[int], k: int) -> list[int] returning the maximum value in each contiguous window of size k in strict O(N) time using a monotonic decreasing deque of indices.

solution.py · ⌘+ENTER
1
Loading Obsidian Monograph editor…
VERIFIER OUTPUT
Write your solution cold in the left editor and click “Run Automated Verifier” (or press ⌘+Enter). Python drills execute locally in an isolated WebAssembly CPython 3.12 Web Worker with zero server round-trip. Passing persists Stage 03 completion automatically.
100% BROWSER-NATIVE PYODIDE PYTHON & POSTGRESQL (PGLITE) WASM RUNNER (74 DRILLS) · ZERO LOCAL INSTALL OPEN M04 5-STAGE GAUNTLET