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 · 15 MIN · CRUCIBLE PRO DRILLALL 3 M01 DRILLS + 3 DSA DRILLS ARE FREE TO RUN LIVE

O(1) LRU Cache with Capacity Eviction (DSA Core)

Implement class LRUCache(capacity: int) with get(key: str) -> int (returns -1 on miss and marks key most-recently-used on hit) and put(key: str, val: int) -> None (inserts/updates and evicts least-recently-used key when exceeding capacity).

100% BROWSER-NATIVE PYODIDE PYTHON & POSTGRESQL (PGLITE) WASM RUNNER (74 DRILLS) · ZERO LOCAL INSTALL OPEN M04 5-STAGE GAUNTLET