Practice implementing classic data structures under time pressure. An LRU cache keeps recently used items and evicts the oldest when capacity is exceeded.
Implement an LRUCache class with get and put.
Practice implementing classic data structures under time pressure. An LRU cache keeps recently used items and evicts the oldest when capacity is exceeded.
Implement an LRUCache class with get and put.