AlgoMaster Logo

LRU Cache

capacity=2,operations=[put(1,1), put(2,2), get(1), put(3,3), get(2), put(4,4), get(1), get(3), get(4)]
0 / 45
Operation: -HTHashMap(empty)
algomaster.io
Step:LRU Cache initialized with capacity 2