Microsoft vs Salesforce Interview Questions

Microsoft lists 192 LeetCode interview questions while Salesforce lists 188. They share 54 problems — 28% of Microsoft's bank and 29% of Salesforce's. Focus on the overlap first, then drill into 138 Microsoft-only and 134 Salesforce-only questions.

Read the full Microsoft vs Salesforce preparation guide →

Overview

Microsoft

192 questions

Easy 55Medium 109Hard 28
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

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

Step 2 — Company-specific depth: Add Microsoft-specific problems like Merge Sorted Array, Add Two Numbers, Single Element in a Sorted Array and Salesforce-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Microsoft
55
Salesforce
25
Medium
Microsoft
109
Salesforce
112
Hard
Microsoft
28
Salesforce
51

Top Shared Topics

54 Shared Questions

High-priority problems to practice for both Microsoft and Salesforce.

ProblemDifficulty
Two SumEasy
Longest Substring Without Repeating CharactersMedium
Longest Palindromic SubstringMedium
Trapping Rain WaterHard
Merge IntervalsMedium
Median of Two Sorted ArraysHard
Valid ParenthesesEasy
3SumMedium
Maximum SubarrayMedium
Group AnagramsMedium
Search in Rotated Sorted ArrayMedium
Reverse Nodes in k-GroupHard
Merge Two Sorted ListsEasy
Roman to IntegerEasy
Spiral MatrixMedium
Container With Most WaterMedium
Merge k Sorted ListsHard
Sort ColorsMedium
Number of IslandsMedium
Word SearchMedium
Generate ParenthesesMedium
Minimum Edge Reversals So Every Node Is ReachableHard
Best Time to Buy and Sell StockEasy
Validate Binary Search TreeMedium
Largest Rectangle in HistogramHard
Combination SumMedium
First Missing PositiveHard
Integer to RomanMedium
Gas StationMedium
Subarray Sum Equals KMedium

Showing top 30 of 54 shared problems.

Unique to Microsoft (138)

Problems in Microsoft's list that do not appear at Salesforce.

ProblemDifficulty
Merge Sorted ArrayEasy
Add Two NumbersMedium
Single Element in a Sorted ArrayMedium
Climbing StairsEasy
Rotate ImageMedium
Palindrome NumberEasy
Longest Common PrefixEasy
Remove Duplicates from Sorted ArrayEasy
Create Hello World FunctionEasy
Set Matrix ZeroesMedium
Reverse IntegerMedium
Letter Combinations of a Phone NumberMedium

Unique to Salesforce (134)

Problems in Salesforce's list that do not appear at Microsoft.

ProblemDifficulty
String CompressionMedium
Time Needed to Rearrange a Binary StringMedium
LFU CacheHard
Closest Equal Element QueriesMedium
Smallest Substring With Identical Characters IHard
Smallest Substring With Identical Characters IIHard
Remove Adjacent Almost-Equal CharactersMedium
Subarray Product Less Than KMedium
Maximum Palindromes After OperationsMedium
Maximum Number of Occurrences of a SubstringMedium
Maximum Product of Three NumbersEasy
Minimize Malware SpreadHard

Frequently Asked Questions

How many LeetCode questions do Microsoft and Salesforce share?

Microsoft and Salesforce share 54 LeetCode interview questions. 138 problems appear only in Microsoft's list and 134 appear only in Salesforce's list.

What topics overlap most between Microsoft and Salesforce?

The most common shared topics between Microsoft and Salesforce are Array (19 shared questions), String (8 shared questions), Hash Table (7 shared questions), Dynamic Programming (6 shared questions), Two Pointers (5 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Microsoft or Salesforce?

Microsoft has 55 Easy, 109 Medium, and 28 Hard questions. Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. Salesforce has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Microsoft and Salesforce?

Start with the 54 shared problems since they cover what both companies ask most often. Then add 20 Microsoft-specific and 20 Salesforce-specific questions to round out your prep.

Explore More