LRU Cache
Explore how to design and implement an LRU cache using custom data structures. Understand the eviction policy of least recently used items when capacity is reached, and practice efficient cache operations through hands-on coding.
We'll cover the following...
We'll cover the following...
Statement
Implement an LRU cache class with the following functions:
- Init(capacity): Initializes an LRU cache with the capacity size.
- Set(key, value): Adds a