Goldman Sachs vs SAP Interview Questions
Goldman Sachs lists 261 LeetCode interview questions while SAP lists 42. They share 27 problems — 10% of Goldman Sachs's bank and 64% of SAP's. Focus on the overlap first, then drill into 234 Goldman Sachs-only and 15 SAP-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 27 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and SAP.
Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like Median of Two Sorted Arrays, First Unique Character in a String, Fraction to Recurring Decimal and SAP-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: Goldman Sachs skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
27 Shared Questions
High-priority problems to practice for both Goldman Sachs and SAP.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| LRU Cache | Medium |
| Container With Most Water | Medium |
| Longest Substring Without Repeating Characters | 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 |
| Kth Largest Element in an Array | Medium |
| Product of Array Except Self | Medium |
| Coin Change | Medium |
| Longest Palindromic Substring | Medium |
| Daily Temperatures | Medium |
| Valid Parentheses | Easy |
| Move Zeroes | Easy |
| Search a 2D Matrix | Medium |
| Reverse Linked List | Easy |
| Candy | Hard |
| Minimum Window Substring | Hard |
| Linked List Cycle | Easy |
| Add Two Numbers | Medium |
| Maximal Square | Medium |
| Count Primes | Medium |
| Lowest Common Ancestor of a Binary Tree | Medium |
Unique to Goldman Sachs (234)
Problems in Goldman Sachs's list that do not appear at SAP.
| Problem | Difficulty |
|---|---|
| Median of Two Sorted Arrays | Hard |
| First Unique Character in a String | Easy |
| Fraction to Recurring Decimal | Medium |
| High Five | Easy |
| Minimum Path Sum | Medium |
| String Compression | 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 |
Unique to SAP (15)
Problems in SAP's list that do not appear at Goldman Sachs.
Frequently Asked Questions
How many LeetCode questions do Goldman Sachs and SAP share?
Goldman Sachs and SAP share 27 LeetCode interview questions. 234 problems appear only in Goldman Sachs's list and 15 appear only in SAP's list.
What topics overlap most between Goldman Sachs and SAP?
The most common shared topics between Goldman Sachs and SAP are Array (18 shared questions), Dynamic Programming (6 shared questions), Hash Table (6 shared questions), Two Pointers (5 shared questions), String (5 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Goldman Sachs or SAP?
Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. SAP has 14 Easy, 21 Medium, and 7 Hard questions. Goldman Sachs has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Goldman Sachs and SAP?
Start with the 27 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 15 SAP-specific questions to round out your prep.