Google vs Salesforce Interview Questions
Google lists 2,305 LeetCode interview questions while Salesforce lists 188. They share 159 problems — 7% of Google's bank and 85% of Salesforce's. Focus on the overlap first, then drill into 2,146 Google-only and 29 Salesforce-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 159 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Google and Salesforce.
Step 2 — Company-specific depth: Add Google-specific problems like Add Two Numbers, Longest Common Prefix, Palindrome Number 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
159 Shared Questions
High-priority problems to practice for both Google and Salesforce.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Trapping Rain Water | Hard |
| Median of Two Sorted Arrays | Hard |
| Longest Substring Without Repeating Characters | Medium |
| Best Time to Buy and Sell Stock | Easy |
| 3Sum | Medium |
| Longest Palindromic Substring | Medium |
| Container With Most Water | Medium |
| Valid Parentheses | Easy |
| Roman to Integer | Easy |
| Merge Intervals | Medium |
| Number of Islands | Medium |
| Maximum Subarray | Medium |
| Subarray Sum Equals K | Medium |
| Merge Two Sorted Lists | Easy |
| Generate Parentheses | Medium |
| Spiral Matrix | Medium |
| Meeting Rooms II | Medium |
| Decode String | Medium |
| Koko Eating Bananas | Medium |
| Search in Rotated Sorted Array | Medium |
| LRU Cache | Medium |
| Largest Rectangle in Histogram | Hard |
| Top K Frequent Elements | Medium |
| Kth Largest Element in an Array | Medium |
| Group Anagrams | Medium |
| Sort Colors | Medium |
| Sliding Window Maximum | Hard |
| Product of Array Except Self | Medium |
| Zigzag Conversion | Medium |
Showing top 30 of 159 shared problems.
Unique to Google (2,146)
Problems in Google's list that do not appear at Salesforce.
| Problem | Difficulty |
|---|---|
| Add Two Numbers | Medium |
| Longest Common Prefix | Easy |
| Palindrome Number | Easy |
| Merge Sorted Array | Easy |
| Create Hello World Function | Easy |
| Merge Strings Alternately | Easy |
| Longest Consecutive Sequence | Medium |
| Recyclable and Low Fat Products | Easy |
| Majority Element | Easy |
| Reverse Integer | Medium |
| Remove Duplicates from Sorted Array | Easy |
| Climbing Stairs | Easy |
Unique to Salesforce (29)
Problems in Salesforce's list that do not appear at Google.
Frequently Asked Questions
How many LeetCode questions do Google and Salesforce share?
Google and Salesforce share 159 LeetCode interview questions. 2146 problems appear only in Google's list and 29 appear only in Salesforce's list.
What topics overlap most between Google and Salesforce?
The most common shared topics between Google and Salesforce are Array (21 shared questions), String (8 shared questions), Hash Table (7 shared questions), Sorting (7 shared questions), Two Pointers (6 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Google or Salesforce?
Google has 601 Easy, 1205 Medium, and 499 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 Google and Salesforce?
Start with the 159 shared problems since they cover what both companies ask most often. Then add 20 Google-specific and 20 Salesforce-specific questions to round out your prep.