Problem database last updated: June 20, 2025

AAmerican Express logo

American Express Coding Interview Questions

23 problems · 7 Easy, 12 Medium, 4 Hard · Ranked #82 of 458

Difficulty breakdown

7 Easy

30% · avg 23%

12 Medium

52% · avg 59%

4 Hard

17% · avg 18%

Top topics

array
65.2%
hash-table
26.1%
string
21.7%
greedy
17.4%2.1x
sorting
17.4%
math
17.4%

Interview profile

Based on 23 reported problems, American Express interviews are in line with industry averages - 17% Hard vs 18% overall. The majority (52%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, American Express puts unusual emphasis on number-theory (8.7% of problems, 17x the industry average), bit-manipulation (13% of problems, 3.9x the industry average), greedy (17.4% of problems, 2.1x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (65.2%), hash-table (26.1%), string (21.7%), greedy (17.4%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 23 problems

Minimum Deletions to Make Character Frequencies Unique

Solve

A string s is called good if there are no two different characters in s that have the same frequency.

MediumVery Likely
hash-tablestringgreedy

Maximum Equal Frequency

Solve

Given an array nums of positive integers, return the longest possible length of an array prefix of nums, such that it is possible to remove exactly one element...

HardVery Likely
arrayhash-table

Equal Sum Arrays With Minimum Number of Operations

Solve

You are given two arrays of integers nums1 and nums2, possibly of different lengths. The values in the arrays are between 1 and 6, inclusive.

MediumVery Likely
arrayhash-tablegreedy

Find a Value of a Mysterious Function Closest to Target

Solve

Winston was given the above mysterious function func. He has an integer array arr and an integer target and he wants to find the values l and r that make the va...

HardVery Likely
arraybinary-searchbit-manipulation

Ugly Number III

Solve

An ugly number is a positive integer that is divisible by a, b, or c.

MediumVery Likely
mathbinary-searchcombinatorics

Percentage of Letter in String

Solve

Given a string s and a character letter, return the percentage of characters in s that equal letter rounded down to the nearest whole percent.

EasyVery Likely
string

Maximum XOR After Operations

Solve

You are given a 0-indexed integer array nums. In one operation, select any non-negative integer x and an index i, then update nums[i] to be equal to nums[i] AND...

MediumVery Likely
arraymathbit-manipulation

Divide an Array Into Subarrays With Minimum Cost I

Solve

You are given an array of integers nums of length n.

EasyVery Likely
arraysortingenumeration

Maximize the Topmost Element After K Moves

Solve

You are given a 0-indexed integer array nums representing the contents of a pile, where nums[0] is the topmost element of the pile.

MediumVery Likely
arraygreedy

Divide an Array Into Subarrays With Minimum Cost II

Solve

You are given a 0-indexed array of integers nums of length n, and two positive integers k and dist.

HardVery Likely
arrayhash-tablesliding-window

Minimum Number of Operations to Make Array XOR Equal to K

Solve

You are given a 0-indexed integer array nums and a positive integer k.

MediumVery Likely
arraybit-manipulation

Two Sum

Solve

Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target.

EasyVery Likely
arrayhash-map

Valid Anagram

Solve

Given two strings s and t, return true if t is an anagram of s, and false otherwise.

EasyLikely
hash-tablestringsorting

3Sum

Solve

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.

MediumLikely
arraytwo-pointerssorting

Minimum Fuel Cost to Report to the Capital

Solve

There is a tree (i.e., a connected, undirected graph with no cycles) structure country network consisting of n cities numbered from 0 to n - 1 and exactly n - 1...

MediumLikely
treedepth-first-searchbreadth-first-search

Best Time to Buy and Sell Stock

Solve

You are given an array prices where prices[i] is the price of a given stock on the ith day.

EasyLikely
arraydynamic-programming

Rotate Array

Solve

Given an integer array nums, rotate the array to the right by k steps, where k is non-negative.

MediumLikely
arraymathtwo-pointers

Valid Palindrome

Solve

A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forwa...

EasyLikely
two-pointersstring

Add Digits

Solve

Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.

EasyLikely
mathsimulationnumber-theory

Trapping Rain Water

Solve

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.

HardLikely
arraytwo-pointersdynamic-programming

Longest Substring Without Repeating Characters

Solve

Given a string s, find the length of the longest substring without duplicate characters.

MediumLikely
hash-tablestringsliding-window

Reconstruct a 2-Row Binary Matrix

Solve

Given the following details of a matrix with n columns and 2 rows :

MediumLikely
arraygreedymatrix

Permutations

Solve

Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.

MediumLikely
arraybacktracking

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent American Express interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your American Express coding interview

American Express interviews focus heavily on array, hash-table, string problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. American Express interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does American Express ask in interviews?add

American Express has been reported to ask 23 distinct coding problems. The most common topics are array, hash-table, string. 7 are Easy difficulty, 12 are Medium, and 4 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are American Express coding interviews?add

Based on 23 reported problems, American Express interviews are in line with industry averages - 17% Hard vs 18% overall. 52% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a American Express coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, hash-table, string. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your American Express interview?

Simulate a real American Express coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a American Express interview with AIarrow_forward