InterviewLegend

Design a Memory Allocator with Coalescing

Commonly asked
Alex Chen22 min readGuide updated 61 real interview reports

Two AMD loops report this. The newer report is secondhand, published in February 2026, about a new-grad loop for a GPU systems team. A senior engineer ran a phone screen of about an hour. The first questions were on virtual and physical addresses, page tables and the TLB. After those came an allocator with alloc, free and coalescing of adjacent free blocks. The candidate used a doubly linked list and boundary tags. The older report is firsthand, from a US mid-level software engineer loop in January 2025. Its first technical interview was a low-level design round built around a memory allocator. That candidate found it hard and ran short on time, and the interviewer gave hints when they got stuck. The same loop went on to a WhatsApp design and two DP problems, and the candidate got an offer.

The AMD angle
AMD writes drivers, runtimes and firmware, where memory is managed by hand. An allocator shows whether you think in bytes, headers and alignment. Expect the interviewer to care more about your block layout and your merge than about matching malloc's speed.

The AMD system design overview explains why design at AMD usually means code like this. If memory questions are new to you, the C++, OS and architecture questions lesson covers the theory that sits around it.

AMDPremium lesson · System design round

The AMD design, worked end to end.

  1. Requirements and scopeSystem design
  2. The API and data model
  3. The design, drawn out1 diagram
  4. 6 deep divesWith the tradeoffs
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.