Amazon vs Salesforce Interview Questions
Amazon lists 1,968 LeetCode interview questions while Salesforce lists 188. They share 155 problems — 8% of Amazon's bank and 82% of Salesforce's. Focus on the overlap first, then drill into 1,813 Amazon-only and 33 Salesforce-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 155 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Amazon and Salesforce.
Step 2 — Company-specific depth: Add Amazon-specific problems like Add Two Numbers, Longest Common Prefix, Merge 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
Top Shared Topics
155 Shared Questions
High-priority problems to practice for both Amazon and Salesforce.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| LRU Cache | Medium |
| Trapping Rain Water | Hard |
| Number of Islands | Medium |
| Longest Substring Without Repeating Characters | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Group Anagrams | Medium |
| Reorganize String | Medium |
| 3Sum | Medium |
| Longest Palindromic Substring | Medium |
| Merge Intervals | Medium |
| Container With Most Water | Medium |
| Median of Two Sorted Arrays | Hard |
| Koko Eating Bananas | Medium |
| Valid Parentheses | Easy |
| Course Schedule | Medium |
| Merge k Sorted Lists | Hard |
| Rotting Oranges | Medium |
| Subarray Sum Equals K | Medium |
| Search in Rotated Sorted Array | Medium |
| Top K Frequent Elements | Medium |
| Maximum Subarray | Medium |
| Generate Parentheses | Medium |
| Word Ladder | Hard |
| Product of Array Except Self | Medium |
| Merge Two Sorted Lists | Easy |
| Course Schedule II | Medium |
| Word Search | Medium |
| Sliding Window Maximum | Hard |
| Spiral Matrix | Medium |
Showing top 30 of 155 shared problems.
Unique to Amazon (1,813)
Problems in Amazon's list that do not appear at Salesforce.
| Problem | Difficulty |
|---|---|
| Add Two Numbers | Medium |
| Longest Common Prefix | Easy |
| Merge Sorted Array | Easy |
| Longest Consecutive Sequence | Medium |
| Copy List with Random Pointer | Medium |
| Lowest Common Ancestor of a Binary Tree | Medium |
| Palindrome Number | Easy |
| Majority Element | Easy |
| Jump Game | Medium |
| Climbing Stairs | Easy |
| House Robber | Medium |
| Letter Combinations of a Phone Number | Medium |
Unique to Salesforce (33)
Problems in Salesforce's list that do not appear at Amazon.
Frequently Asked Questions
How many LeetCode questions do Amazon and Salesforce share?
Amazon and Salesforce share 155 LeetCode interview questions. 1813 problems appear only in Amazon's list and 33 appear only in Salesforce's list.
What topics overlap most between Amazon and Salesforce?
The most common shared topics between Amazon and Salesforce are Array (19 shared questions), Hash Table (8 shared questions), String (8 shared questions), Dynamic Programming (5 shared questions), Breadth-First Search (5 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Amazon or Salesforce?
Amazon has 527 Easy, 1074 Medium, and 367 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 Amazon and Salesforce?
Start with the 155 shared problems since they cover what both companies ask most often. Then add 20 Amazon-specific and 20 Salesforce-specific questions to round out your prep.