Thread-Safe LRU Cache with Per-Key TTL & Metrics
Doubly-linked list + hash map implementation achieving strict O(1) get/put with lazy + proactive TTL expiration and unit assertion suite.
Ready-to-Run Prompt Template
Mode: deep-thinkImplement a production O(1) LRU Cache with per-entry TTL expiration, hit/miss telemetry, and max-capacity eviction in TypeScript (or Python). Explain time/space complexity, walk through boundary edge cases, and include 8 runnable console.assert verification tests.
Recommended Fusta Skills for This Prompt
Structures algorithm challenges, debugging drills, and coding exercises with optimal intuition, Big-O complexity, and tests.
Follows a Plan -> Implement -> Edge-Case Test workflow and produces complete runnable modules with zero stubs.
Audits code for race conditions, off-by-one errors, XSS/injection flaws, and runs an agentic post-generation review on complex code.
More Ready-to-Run Templates
Topological DAG Workflow Scheduler with Cycle Detection
Executes dependent build/CI jobs with bounded concurrency, Kahn's algorithm cycle reporting, and critical-path latency calculation.
Live Canvas UIInteractive Pomodoro & Sprint Focus Studio
Builds a single-file dark Pomodoro focus studio with customizable intervals, priority task queue, session stats, and SVG progress rings.
Live Canvas UILLM KV-Cache & GPU VRAM Cluster Simulator
Interactive React dashboard calculating FP16/INT8/INT4 model weights, KV-cache growth across 4K–1M tokens, and multi-GPU H100/A100 tensor parallelism.