LRU Cache
Problem 54advanced45 mins
LRU Cache
Created on: 7 Sep 2025, 3:30 PM
Time Elapsed
00:00
Problem Description
Build an LRU (Least Recently Used) cache with get and set operations.
Requirements
- •get() method
- •set() method
- •Evict least recently used
- •Size limit
- •O(1) operations
- •Handle expiration
Tags
JavaScriptCacheLRUData Structures
Code Editor
Loading editor...