amazon Interview SessionBeta
45:00

LRU Cache

Medium

Design a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement the LRUCache class with get(key) and put(key, value) operations.

JavaScript
Loading...
Test Results
Run code to see results...