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.

Read the full Google vs Salesforce preparation guide →

Overview

Google

2,305 questions

Easy 601Medium 1205Hard 499
Salesforce

188 questions

Easy 25Medium 112Hard 51

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

Easy
Google
601
Salesforce
25
Medium
Google
1205
Salesforce
112
Hard
Google
499
Salesforce
51

Top Shared Topics

159 Shared Questions

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

ProblemDifficulty
Two SumEasy
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
Longest Substring Without Repeating CharactersMedium
Best Time to Buy and Sell StockEasy
3SumMedium
Longest Palindromic SubstringMedium
Container With Most WaterMedium
Valid ParenthesesEasy
Roman to IntegerEasy
Merge IntervalsMedium
Number of IslandsMedium
Maximum SubarrayMedium
Subarray Sum Equals KMedium
Merge Two Sorted ListsEasy
Generate ParenthesesMedium
Spiral MatrixMedium
Meeting Rooms IIMedium
Decode StringMedium
Koko Eating BananasMedium
Search in Rotated Sorted ArrayMedium
LRU CacheMedium
Largest Rectangle in HistogramHard
Top K Frequent ElementsMedium
Kth Largest Element in an ArrayMedium
Group AnagramsMedium
Sort ColorsMedium
Sliding Window MaximumHard
Product of Array Except SelfMedium
Zigzag ConversionMedium

Showing top 30 of 159 shared problems.

Unique to Google (2,146)

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

ProblemDifficulty
Add Two NumbersMedium
Longest Common PrefixEasy
Palindrome NumberEasy
Merge Sorted ArrayEasy
Create Hello World FunctionEasy
Merge Strings AlternatelyEasy
Longest Consecutive SequenceMedium
Recyclable and Low Fat ProductsEasy
Majority ElementEasy
Reverse IntegerMedium
Remove Duplicates from Sorted ArrayEasy
Climbing StairsEasy

Unique to Salesforce (29)

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

ProblemDifficulty
Time Needed to Rearrange a Binary StringMedium
Smallest Substring With Identical Characters IIHard
Remove Adjacent Almost-Equal CharactersMedium
Maximum Palindromes After OperationsMedium
Minimum Time to Visit All HousesMedium
Find Subarray With Bitwise OR Closest to KHard
Check Whether Two Strings are Almost EquivalentEasy
Beautiful Towers IIMedium
Beautiful Towers IMedium
Maximum Number That Makes Result of Bitwise AND ZeroMedium
Check If a Number Is Majority Element in a Sorted ArrayEasy
Maximum Height of a TriangleEasy

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.

Explore More