InterviewLegend

Strings in C: atoi, Reverse & Palindromes

Alex Chen35 min readGuide updated 61 real interview reports

None of these four problems would slow you down in Python. AMD asks them in C, usually inside a round about drivers, firmware or embedded work, and in C the easy part is the algorithm. What decides the round is the empty string, the integer that won't fit, the char that turns out to be signed and the pointer that slips one byte past the buffer.

A Markham kernel-driver round in September 2026 had string to integer as one of three C tasks. Reversing a string has two 2026 reports, from a Japan intern loop in August and a firmware intern round in April. A Bengaluru senior lead round in July 2026 asked whether one string can break another. The palindrome check sits at the end with its dates, since its newest report is from March 2025.

The AMD angle
Say the edge cases before you write the loop. In the July 2026 Bengaluru round the interviewer focused on edge cases. In C that list is short and known: a NULL pointer, an empty string, overflow and the signedness of char. Name them first and the code that follows looks deliberate.

AMDPremium lesson · Coding round

The 4 AMD problems are below.

  1. A Premium questionCoding · Easy · Frequently asked
  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.