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

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
SAP

42 questions

Easy 14Medium 21Hard 7

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

Easy
Goldman Sachs
48
SAP
14
Medium
Goldman Sachs
165
SAP
21
Hard
Goldman Sachs
48
SAP
7

Top Shared Topics

27 Shared Questions

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

ProblemDifficulty
Trapping Rain WaterHard
LRU CacheMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
Merge IntervalsMedium
Group AnagramsMedium
Number of IslandsMedium
Search in Rotated Sorted ArrayMedium
Best Time to Buy and Sell StockEasy
Two SumEasy
Maximum SubarrayMedium
Kth Largest Element in an ArrayMedium
Product of Array Except SelfMedium
Coin ChangeMedium
Longest Palindromic SubstringMedium
Daily TemperaturesMedium
Valid ParenthesesEasy
Move ZeroesEasy
Search a 2D MatrixMedium
Reverse Linked ListEasy
CandyHard
Minimum Window SubstringHard
Linked List CycleEasy
Add Two NumbersMedium
Maximal SquareMedium
Count PrimesMedium
Lowest Common Ancestor of a Binary TreeMedium

Unique to Goldman Sachs (234)

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

ProblemDifficulty
Median of Two Sorted ArraysHard
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
String CompressionMedium
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

Unique to SAP (15)

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

ProblemDifficulty
Movie RatingMedium
Maximum Path Quality of a GraphHard
Count the Number of Infection SequencesHard
Count Increasing QuadrupletsHard
Maximum Students Taking ExamHard
Longest Common PrefixEasy
Palindrome NumberEasy
Valid PalindromeEasy
Leftmost Column with at Least a OneMedium
Valid Perfect SquareEasy
Binary Search Tree to Greater Sum TreeMedium
Same TreeEasy

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.

Explore More