Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
LRU Cache
Bookmark
Input
Standard
All Hits
All Evictions
Custom
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)]
Operation: -
H
T
HashMap
(empty)
algo
master
.
io
Step:
LRU Cache initialized with capacity 2
0 / 45
Input
Standard
All Hits
All Evictions
Custom
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: -
H
T
HashMap
(empty)
algo
master
.
io
Step:
LRU Cache initialized with capacity 2