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

LSM-Tree SSTable Compaction & Tombstone GC

Implement compact_sstables(tables: list[list[tuple[str, str | None, int]]], drop_tombstones: bool) -> list[tuple[str, str | None, int]]. Each entry is (key, value_or_None, seq_num) where None is a delete tombstone. Keep only the highest seq_num per key, drop entries with value is None when drop_tombstones=True, and return entries sorted lexicographically by key.

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