About this puzzle

The Cache — practice the decision, scored against the optimum

What does the The Cache puzzle teach?

LRU is a guess; Belady (evict the item used farthest in the future) is the provable optimum.

Why do interviews ask about this?

Cache eviction (Belady vs LRU) is a classic systems interview: why optimal eviction needs the future, and why LRU approximates it.

How is it scored?

The engine computes the provably-optimal answer for the exact instance you played (dynamic programming, shortest-path, or exhaustive search — never a heuristic) and scores your attempt as a percentage of it. No login needed to see your score.