Google vs MathWorks Interview Questions

Google lists 2,305 LeetCode interview questions while MathWorks lists 29. They share 19 problems — 1% of Google's bank and 66% of MathWorks's. Focus on the overlap first, then drill into 2,286 Google-only and 10 MathWorks-only questions.

Overview

Google

2,305 questions

Easy 601Medium 1205Hard 499
MathWorks

29 questions

Easy 5Medium 13Hard 11

Preparation Strategy

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

Step 2 — Company-specific depth: Add Google-specific problems like Two Sum, Add Two Numbers, 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
Google
601
MathWorks
5
Medium
Google
1205
MathWorks
13
Hard
Google
499
MathWorks
11

Top Shared Topics

19 Shared Questions

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

ProblemDifficulty
Split Array Largest SumHard
Longest Repeating Character ReplacementMedium
Reverse Nodes in k-GroupHard
Sum of Distances in TreeHard
Distinct SubsequencesHard
Longest String ChainMedium
String TransformationHard
Beautiful ArrangementMedium
Convert Binary Number in a Linked List to IntegerEasy
Shopping OffersMedium
Keyboard RowEasy
Maximum Difference Between Increasing ElementsEasy
Reshape the MatrixEasy
Count Subarrays With Fixed BoundsHard
Pass the PillowEasy
Minimum Cost Tree From Leaf ValuesMedium
Binary Tree CamerasHard
Earliest Second to Mark Indices IIHard
Minimum Edge Reversals So Every Node Is ReachableHard

Unique to Google (2,286)

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

ProblemDifficulty
Two SumEasy
Add Two NumbersMedium
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
Longest Common PrefixEasy
Palindrome NumberEasy
Merge Sorted ArrayEasy
Longest Substring Without Repeating CharactersMedium
Best Time to Buy and Sell StockEasy
3SumMedium
Create Hello World FunctionEasy
Merge Strings AlternatelyEasy

Unique to MathWorks (10)

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

ProblemDifficulty
Maximum Number of AlloysMedium
Sell Diminishing-Valued Colored BallsMedium
Total Cost to Hire K WorkersMedium
Earliest Second to Mark Indices IMedium
Maximum Palindromes After OperationsMedium
Last Substring in Lexicographical OrderHard
Count AnagramsHard
Remove Colored Pieces if Both Neighbors are the Same ColorMedium
Number of Divisible Triplet SumsMedium
Break a PalindromeMedium

Frequently Asked Questions

How many LeetCode questions do Google and MathWorks share?

Google and MathWorks share 19 LeetCode interview questions. 2286 problems appear only in Google's list and 10 appear only in MathWorks's list.

What topics overlap most between Google and MathWorks?

The most common shared topics between Google and MathWorks are Array (10 shared questions), Dynamic Programming (10 shared questions), String (5 shared questions), Greedy (3 shared questions), Hash Table (3 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Google or MathWorks?

Google has 601 Easy, 1205 Medium, and 499 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 Google and MathWorks?

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

Explore More