LRU Cache

HashMap + Doubly Linked List · O(1) get & put

0 / 3
Try:
Doubly Linked List HEAD=MRU TAIL=LRU
Cache is empty — try PUT(key, val)
HashMap key → node pointer
Empty
Operation Log
No operations yet