Problem 146 · Medium

LRU Cache

Track O(1) get/put with a hash map and doubly linked list while MRU/LRU order updates live.

Open the interactive visualisation