LRU Cache
Design a fixed-capacity key-value cache whose get operation returns a key's value or -1 and marks it recently used, while put inserts or updates a key. When a new insertion would exceed capacity, evict the least recently used key.
Design a fixed-capacity key-value cache whose get operation returns a key's value or -1 and marks it recently used, while put inserts or updates a key. When a new insertion would exceed capacity, evict the least recently used key.