A CodeSignal challenge requires implementing an LRU (Least Recently Used) cache with O(1) get and put. Which combination of data structures achieves this?
-
A
Array + binary search tree
-
B
Hash map + doubly linked list
-
C
Hash map + min-heap
-
D
Sorted array + queue