Amazon logoAmazon
Coding·30 minMembers

LRU Cache (LC 146)

Members only

Implement an LRU cache with O(1) get/put. A perennial Amazon onsite/phone-screen coding round; interviewers usually want to see a doubly-linked list plus hashmap rather than a deque trick.

SWE
hashmap
data-structure
medium
Frequency
Medium
Last asked
2026-04-28
Stage
onsite-coding · phone-screen

Log in to continue reading the full content