Oracle logoOracle
CodingMembers

LRU Cache with Expiration (LC 146 + TTL)

Members only

Implement an O(1) LRU cache with a hash map plus doubly linked list, then extend it with per-entry expiration so expired keys read as absent.

SWE
hashmap
linked-list
ttl
medium
Frequency
Low
Last asked
2026-09-03
Stage
phone-screen · onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...