InterviewLegend

Linked Lists & Queues in C

Alex Chen40 min readGuide updated 61 real interview reports

When AMD asks about linked lists, it usually wants you to write one. Writing a singly linked list in C has four firsthand reports from March 2019 to August 2026, from a Canadian software role, a Bengaluru graphics driver screen, an Austin firmware intern on CoderPad and a Hyderabad validation loop. The newest named problem is from October 2026, when a Bengaluru co-op had to sort two linked lists of letters and merge them into one.

The older problems are the classics: insert into a sorted list, reverse a list, find a cycle, make a queue out of two stacks. They're short. What gets graded is the C around them, meaning who owns each node, what happens when malloc returns NULL and whether every node gets freed. In the practice editor each list goes in and comes out as an array of values. The Python solutions still build real nodes and move real pointers, and each walkthrough shows the C you'd write on CoderPad or a whiteboard.

The AMD angle
Write C that compiles and frees what it allocates. The 2025 Austin intern had to finish every question in full and print the output to the console. A 2022 graphics screen followed the list with "how do you allocate memory?" Check malloc, free every node and say both out loud.

AMDPremium lesson · Coding round

The 6 AMD problems are below.

  1. A Premium questionCoding · Easy · Frequently asked
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Easy

+ 3 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.