Design and implement an LRU Cache with O(1) get and put.
Unlock detailed company stats for this questionUpgrade
Handle capacity 0, updating an existing key, missing keys and repeated evictions. Run test cases to verify.
Expect follow-ups like
- How does it behave in a multi-threaded environment, and how do you handle race conditions with a global lock, read-write locks or fine-grained locking?
Community answers
No answers contributed by the community yet.
Related questions
Implement an LRU Cache with O(1) get and put.Design an LRU cache with O(1) get and put.Implement an LRU cache with O(1) operations.Related courses

Course

Course
Course

