← Amazon questions

Solve for X in an addition equation string

Filed under Amazon

Given a string representing an equation of the form 'A+B=C' where one of A, B, or C is 'X', parse the string and return the integer value of X.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.