InterviewLegend

LRU Cache, shared_ptr & Thread-Safe Queues

Alex Chen40 min readGuide updated 61 real interview reports

When AMD wants you to build something in C++, it's usually the kind of small systems code you'd find in a driver or a runtime, like an LRU cache, a smart pointer or a queue that many threads share. None of them is hard on paper. In the August 2026 LRU round the follow-ups arrived while the candidate was still typing, so write a first version that's easy to change.

The LRU cache is the one that repeats. Four loops raised it, and the newest was in October 2026. A basic shared_ptr has two reports, from July 2026 and from a 2019 GPU onsite. The July round also asked for a stack and a multithreaded queue. memcpy sits at the end as an older problem from 2023 and 2025.

The AMD angle
Write the C++ you'd want to maintain. These rounds sit next to questions on caches, memory and threads, so the interviewer reads your code as systems code. Own every pointer, say who frees what, and keep each method short enough that the next requirement is a small edit.

AMDPremium lesson · Coding round

The 4 AMD problems are below.

  1. A Premium questionCoding · Medium · Signature problem
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Medium

+ 1 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the AMD questions

$49 a year · all 122 companies · instant access

21,000+ candidate reports

AMD interview guide

Know what AMD asks before you walk in.

37 coding · 5 system design · 17 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your AMD interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.