Goldman Sachs vs Salesforce Interview Questions

Goldman Sachs lists 261 LeetCode interview questions while Salesforce lists 188. They share 74 problems — 28% of Goldman Sachs's bank and 39% of Salesforce's. Focus on the overlap first, then drill into 187 Goldman Sachs-only and 114 Salesforce-only questions.

Read the full Goldman Sachs vs Salesforce preparation guide →

Overview

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

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

Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like First Unique Character in a String, Fraction to Recurring Decimal, High Five 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
Goldman Sachs
48
Salesforce
25
Medium
Goldman Sachs
165
Salesforce
112
Hard
Goldman Sachs
48
Salesforce
51

Top Shared Topics

74 Shared Questions

High-priority problems to practice for both Goldman Sachs and Salesforce.

ProblemDifficulty
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
LRU CacheMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Merge IntervalsMedium
Group AnagramsMedium
Number of IslandsMedium
Search in Rotated Sorted ArrayMedium
Best Time to Buy and Sell StockEasy
Two SumEasy
Maximum SubarrayMedium
Top K Frequent ElementsMedium
Kth Largest Element in an ArrayMedium
Count Palindromic SubsequencesHard
Remove All Adjacent Duplicates in String IIMedium
Optimal Account BalancingHard
Product of Array Except SelfMedium
Sliding Window MaximumHard
Palindromic SubstringsMedium
Backspace String CompareEasy
Coin ChangeMedium
3SumMedium
Subarray Sum Equals KMedium
Longest Palindromic SubstringMedium
Valid ParenthesesEasy
Asteroid CollisionMedium
Generate ParenthesesMedium
Roman to IntegerEasy

Showing top 30 of 74 shared problems.

Unique to Goldman Sachs (187)

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

ProblemDifficulty
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
Find the Winner of the Circular GameMedium
Robot Bounded In CircleMedium
Decode WaysMedium
Find Minimum in Rotated Sorted ArrayMedium
Better Compression of StringMedium
Knight Probability in ChessboardMedium
Best Time to Buy and Sell Stock IIMedium
Pairs of Songs With Total Durations Divisible by 60Medium

Unique to Salesforce (114)

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

ProblemDifficulty
Minimum Operations to Reduce an Integer to 0Medium
Time Needed to Rearrange a Binary StringMedium
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
Distinct SubsequencesHard

Frequently Asked Questions

How many LeetCode questions do Goldman Sachs and Salesforce share?

Goldman Sachs and Salesforce share 74 LeetCode interview questions. 187 problems appear only in Goldman Sachs's list and 114 appear only in Salesforce's list.

What topics overlap most between Goldman Sachs and Salesforce?

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

Which company asks harder LeetCode questions: Goldman Sachs or Salesforce?

Goldman Sachs has 48 Easy, 165 Medium, and 48 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 Goldman Sachs and Salesforce?

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

Explore More