Build an LRU Cache
hash map plus doubly linked list
Challenge 2 of Storage & CachingIntermediate~50 minFree
Build a least-recently-used cache with O(1) get and put, backed by a hash map and a doubly linked list. Add eviction at capacity, non-mutating peeks, and hit/miss statistics.