Question DSA-HASH-0057
MediumWhich data structures combine to build an LRU cache with O(1) get and put?
- A.
A BST and a queue
- B.
A hash map and a doubly linked list
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Hashing question
Which data structures combine to build an LRU cache with O(1) get and put?
A BST and a queue
A hash map and a doubly linked list
Sign up free to see the answer and a step-by-step explanation.
Two stacks
A heap and an array