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
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
Top Shared Topics
74 Shared Questions
High-priority problems to practice for both Goldman Sachs and Salesforce.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| Median of Two Sorted Arrays | Hard |
| LRU Cache | Medium |
| Container With Most Water | Medium |
| Longest Substring Without Repeating Characters | Medium |
| String Compression | Medium |
| Merge Intervals | Medium |
| Group Anagrams | Medium |
| Number of Islands | Medium |
| Search in Rotated Sorted Array | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Two Sum | Easy |
| Maximum Subarray | Medium |
| Top K Frequent Elements | Medium |
| Kth Largest Element in an Array | Medium |
| Count Palindromic Subsequences | Hard |
| Remove All Adjacent Duplicates in String II | Medium |
| Optimal Account Balancing | Hard |
| Product of Array Except Self | Medium |
| Sliding Window Maximum | Hard |
| Palindromic Substrings | Medium |
| Backspace String Compare | Easy |
| Coin Change | Medium |
| 3Sum | Medium |
| Subarray Sum Equals K | Medium |
| Longest Palindromic Substring | Medium |
| Valid Parentheses | Easy |
| Asteroid Collision | Medium |
| Generate Parentheses | Medium |
| Roman to Integer | Easy |
Showing top 30 of 74 shared problems.
Unique to Goldman Sachs (187)
Problems in Goldman Sachs's list that do not appear at Salesforce.
| Problem | Difficulty |
|---|---|
| First Unique Character in a String | Easy |
| Fraction to Recurring Decimal | Medium |
| High Five | Easy |
| Minimum Path Sum | Medium |
| Find the Winner of the Circular Game | Medium |
| Robot Bounded In Circle | Medium |
| Decode Ways | Medium |
| Find Minimum in Rotated Sorted Array | Medium |
| Better Compression of String | Medium |
| Knight Probability in Chessboard | Medium |
| Best Time to Buy and Sell Stock II | Medium |
| Pairs of Songs With Total Durations Divisible by 60 | Medium |
Unique to Salesforce (114)
Problems in Salesforce's list that do not appear at Goldman Sachs.
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.