InterviewLegend

Sums and Largest Values

Alex Chen40 min readUpdated 33 real interview reports

Amex coding rounds lean on plain array work. The five problems here split into sums and largest values, and some of them tend to travel together in the same screen. Campus drives and regular SWE rounds ask them alike.

None of them is long, and a clean answer is a dozen lines of Java. The work is in the edge cases. A value can pair with itself if you insert it too early, and a list where every day loses money breaks a sum seeded with zero. Find those before the interviewer does.

The American Express angle
Amex has you type these in a plain editor, usually in Java, with no tests to run. A duplicate triplet or an int that overflowed on a big total goes unnoticed until the interviewer reads your code. Name the brute force and its cost in one sentence, then write the faster version and trace one small input by hand. Java questions tend to come up mid-problem, so be ready to explain why PriorityQueue is a min-heap by default and what HashMap does on a lookup.

American ExpressPremium lesson · Coding round

The 5 American Express problems are below.

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

+ 2 more in this lesson

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

Get the American Express questions

$49 a year · all 100 companies · cancel anytime

From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.

Had your American Express interview?Tell us what they asked. Reviewed before it goes in, never with your name.
American Express interview guide

Know what American Express asks before you walk in.

30 coding · 3 system design · 15 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

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