13. Which of the following designs is a data structure to implement a Least Recently Used (LRU) cache, supporting get and put operations in O(1) time complexity?
(A) Stacks
(B) Doubly linked list
(C) Hash table
(D) Hash table + Doubly linked list
(E) Stacks + Doubly linked list

答案:登入後查看
統計: A(1), B(1), C(1), D(1), E(0) #3808120

詳解 (共 1 筆)

#7761629
考題觀念 本題考的是如何同時滿足兩項需求...
(共 1302 字,隱藏中)
前往觀看
0
0