LRU Cache

medium~30 min

Design an LRU (Least Recently Used) cache with O(1) get and put operations. Explain the data structures you'd use and why, and what happens on a cache hit vs. a cache miss when the cache is full.

Solution

This one has no written solution — the answer is your own story or your own submission.