Sums and Largest Values
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.
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.
- A Premium questionCoding · Medium · Signature problem
- A Premium questionCoding · Easy · Frequently asked
- 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.
American Express interview guideKnow what American Express asks before you walk in.
30 coding · 3 system design · 15 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.