...

>

Implement LRU Cache

Implement LRU Cache

Try to solve the LRU Cache cache problem.

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
...

Access this course and 1200+ top-rated courses and projects.