This question evaluates proficiency in cache design and efficient data structures, covering LRU eviction semantics, O(1) average-time get/put operations, update and missing-key behavior, concurrency/thread-safety considerations, and testing strategy within the Coding & Algorithms domain.
Design and implement a fixed-capacity cache supporting get(key) -> value and put(key, value) in O(