New
Dark mode is now available across the site
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Coding Question
AI Insights
Quick Summary
Maintain an append-only log of cache operations to ensure crash recovery.
Replay persisted records sequentially to reconstruct both cached values and LRU ordering.
Gracefully ignore trailing corrupted data without interrupting system startup.
What This Tests
State persistence and crash recovery
Efficient I/O and append-only logging
LRU cache mechanics with dynamic reordering
Fault-tolerant data deserialization
Common Patterns
Hashing
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Stdout
-