Design and Implement a Fixed-Capacity LRU Cache with Constant-Time Operations

Quick Overview

Design and implement a fixed-capacity least-recently-used cache whose get and put operations run in constant time, while answering follow-up probes during coding. It tests data structure composition, careful iterator handling, eviction edge cases, and extensions such as thread safety and expiry.

Design and Implement a Fixed-Capacity LRU Cache with Constant-Time Operations

Company: AMD

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Onsite

Overview: Design and implement a fixed-capacity least-recently-used cache whose get and put operations run in constant time, while answering follow-up probes during coding. It tests data structure composition, careful iterator handling, eviction edge cases, and extensions such as thread safety and expiry.

Read the full AMD Software Engineer interview experience this question came from

AMD logo
AMD
Oct 9, 2026
mediumSoftware EngineerOnsiteSoftware Engineering Fundamentals
2
0
Loading...