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

DSA · Min-Heap Top-K Frequent Elements (O(N log K))

Implement top_k_frequent(items: list[str], k: int) -> list[str] returning the k most frequent items ordered by highest frequency first (break ties lexicographically ascending).

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