What is an LRU Cache and which data structures implement it in O(1) for both get and put?
-
A
Least Recently Used cache using an array and binary search
-
B
LRU cache using a doubly linked list and hash map
-
C
Most recently used cache using a stack
-
D
Least frequently used cache using a min-heap