Amazon vs MathWorks Interview Questions

Amazon lists 1,968 LeetCode interview questions while MathWorks lists 29. They share 17 problems — 1% of Amazon's bank and 59% of MathWorks's. Focus on the overlap first, then drill into 1,951 Amazon-only and 12 MathWorks-only questions.

Overview

Amazon

1,968 questions

Easy 527Medium 1074Hard 367
MathWorks

29 questions

Easy 5Medium 13Hard 11

Preparation Strategy

Step 1 — Shared core: Solve the 17 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Amazon and MathWorks.

Step 2 — Company-specific depth: Add Amazon-specific problems like Two Sum, LRU Cache, Trapping Rain Water and MathWorks-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: MathWorks skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Amazon
527
MathWorks
5
Medium
Amazon
1074
MathWorks
13
Hard
Amazon
367
MathWorks
11

Top Shared Topics

17 Shared Questions

High-priority problems to practice for both Amazon and MathWorks.

ProblemDifficulty
Longest Repeating Character ReplacementMedium
Reverse Nodes in k-GroupHard
Split Array Largest SumHard
Distinct SubsequencesHard
Binary Tree CamerasHard
Sell Diminishing-Valued Colored BallsMedium
Maximum Difference Between Increasing ElementsEasy
Count Subarrays With Fixed BoundsHard
Convert Binary Number in a Linked List to IntegerEasy
Last Substring in Lexicographical OrderHard
Reshape the MatrixEasy
Minimum Edge Reversals So Every Node Is ReachableHard
Keyboard RowEasy
Shopping OffersMedium
Longest String ChainMedium
Beautiful ArrangementMedium
Sum of Distances in TreeHard

Unique to Amazon (1,951)

Problems in Amazon's list that do not appear at MathWorks.

ProblemDifficulty
Two SumEasy
LRU CacheMedium
Trapping Rain WaterHard
Number of IslandsMedium
Longest Substring Without Repeating CharactersMedium
Best Time to Buy and Sell StockEasy
Group AnagramsMedium
Add Two NumbersMedium
Reorganize StringMedium
3SumMedium
Longest Palindromic SubstringMedium
Merge IntervalsMedium

Unique to MathWorks (12)

Problems in MathWorks's list that do not appear at Amazon.

ProblemDifficulty
Maximum Number of AlloysMedium
Total Cost to Hire K WorkersMedium
Earliest Second to Mark Indices IMedium
Earliest Second to Mark Indices IIHard
Maximum Palindromes After OperationsMedium
Count AnagramsHard
Minimum Cost Tree From Leaf ValuesMedium
Remove Colored Pieces if Both Neighbors are the Same ColorMedium
Pass the PillowEasy
String TransformationHard
Number of Divisible Triplet SumsMedium
Break a PalindromeMedium

Frequently Asked Questions

How many LeetCode questions do Amazon and MathWorks share?

Amazon and MathWorks share 17 LeetCode interview questions. 1951 problems appear only in Amazon's list and 12 appear only in MathWorks's list.

What topics overlap most between Amazon and MathWorks?

The most common shared topics between Amazon and MathWorks are Array (9 shared questions), Dynamic Programming (8 shared questions), String (5 shared questions), Hash Table (3 shared questions), Depth-First Search (3 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Amazon or MathWorks?

Amazon has 527 Easy, 1074 Medium, and 367 Hard questions. MathWorks has 5 Easy, 13 Medium, and 11 Hard questions. MathWorks has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Amazon and MathWorks?

Start with the 17 shared problems since they cover what both companies ask most often. Then add 20 Amazon-specific and 12 MathWorks-specific questions to round out your prep.

Explore More