Fade to Solo
Linked List

LRU Cache

NO NETMleetcode ↗

Problem

Design a fixed-capacity cache with get(key) and put(key, value), both O(1), that evicts the least recently used entry when a put would exceed capacity. Both get and a successful put count as "using" a key.

NO NET00:00
no net — stays locked