Interview Intel · Goldman Sachs

Goldman Sachs coding interview
questions, leaked.

159 problems reported across recent Goldman Sachs interviews. Top patterns: array, string, hash table. The list below is what most candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Goldman Sachs pulls from a pool of 159 problems, and 64% are medium or harder. You're looking at heavy array coverage (92 problems), paired with strings, hash tables, and dynamic programming. The company rotates through classics like Trapping Rain Water and Median of Two Sorted Arrays, but also hits simulation, greedy, and matrix problems you might not have drilled. If you blank mid-OA on a two-pointer or DP pattern, StealthCoder runs invisibly during screen share and surfaces a working solution in seconds, letting you move past the wall and finish strong.

Tracked problems
159
Easy
37/ 23%
Medium
102/ 64%
Hard
20/ 13%

Top problems at Goldman Sachs

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Trapping Rain WaterHARD
100.0
02Median of Two Sorted ArraysHARD
79.9
03First Unique Character in a StringEASY
77.8
04Fraction to Recurring DecimalMEDIUM
76.5
05High FiveEASY
0.0
06Number of Sub-arrays of Size K and Average Greater than or Equal to ThresholdMEDIUM
0.0
07Car PoolingMEDIUM
0.0
08Best Time to Buy and Sell StockEASY
64.2
09Number of IslandsMEDIUM
63.6
10Minimum Path SumMEDIUM
62.4
11String CompressionMEDIUM
61.1
12LRU CacheMEDIUM
59.7
13Two SumEASY
59.7
14Container With Most WaterMEDIUM
58.9
15Find Minimum in Rotated Sorted ArrayMEDIUM
58.9
16Group AnagramsMEDIUM
58.9
17Robot Return to OriginEASY
0.0
18Decode WaysMEDIUM
56.4
19Longest Substring Without Repeating CharactersMEDIUM
55.5
20Search in Rotated Sorted ArrayMEDIUM
55.5
21Minimize the Maximum of Two ArraysMEDIUM
53.5
22Best Time to Buy and Sell Stock IIMEDIUM
52.4
23Kth Largest Element in an ArrayMEDIUM
51.2
24Valid Arrangement of PairsHARD
50.0
25Maximum SubarrayMEDIUM
48.6
26Construct Smallest Number From DI StringMEDIUM
48.6
27Merge IntervalsMEDIUM
48.6
28Power of ThreeEASY
48.6
29Longest Increasing SubsequenceMEDIUM
48.6
30Longest Palindromic SubstringMEDIUM
48.6
31Valid ParenthesesEASY
47.2
32Jump GameMEDIUM
47.2
33Count Palindromic SubsequencesHARD
47.2
34Minimum Cost Homecoming of a Robot in a GridMEDIUM
47.2
35Range Product Queries of PowersMEDIUM
47.2
36Sliding Window MaximumHARD
45.6
37Keep Multiplying Found Values by TwoEASY
45.6
38Count Number of TextsMEDIUM
45.6
39Find All Good IndicesMEDIUM
45.6
40Successful Pairs of Spells and PotionsMEDIUM
45.6
41Determine if Two Events Have ConflictEASY
45.6
42String to Integer (atoi)MEDIUM
43.8
43Product of Array Except SelfMEDIUM
43.8
44Search a 2D MatrixMEDIUM
43.8
45Subarray Sum Equals KMEDIUM
41.8
46House RobberMEDIUM
41.8
47Pow(x, n)MEDIUM
41.8
48Word SearchMEDIUM
39.5
49Linked List CycleEASY
39.5
50Next PermutationMEDIUM
39.5

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Goldman Sachs OA. The proctor cannot see it. Screen share cannot detect it. Made for the engineer who has done the work but might still blank with a webcam pointed at him.

Get StealthCoder
Topic distribution
What this means

Arrays dominate at 58% of the topic distribution, so you need speed on sliding window, two-pointer traversal, and prefix-sum logic before you test. Strings (31%) and hash tables (26%) come next, often combined in problems like Fraction to Recurring Decimal or First Unique Character. Dynamic programming (22%) threads through array problems like Trapping Rain Water and Minimum Path Sum. The hard problems (20 total) cluster around DP, binary search, and monotonic stack techniques. Start with array and string fundamentals, then stack DP patterns. The medium tier (102 problems) is where most interviews live, so don't treat easy problems as a warm-up. StealthCoder is your hedge for whatever pattern didn't stick during prep when the clock is live.

Companies with similar patterns

If you prepped for Goldman Sachs, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Goldman Sachs.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Made for the engineer who has done the work but might still blank with a webcam pointed at him. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Goldman Sachs interview FAQ

How many array problems should I solve before a Goldman Sachs OA?+

Array appears in 92 of 159 problems (58%), so it's your core. Focus on sliding window, two pointers, and prefix sums first. You should be able to solve at least 30-40 array problems cleanly, including medium-difficulty ones like Container With Most Water and Number of Sub-arrays of Size K.

Is dynamic programming required for Goldman Sachs interviews?+

Yes. DP shows up in 35 problems and often overlaps with arrays and strings. Problems like Trapping Rain Water, Minimum Path Sum, and Best Time to Buy and Sell Stock are high-frequency. You need to understand both top-down and bottom-up approaches before you interview.

Should I study hash tables or strings first?+

Start with strings (49 problems), since hash-table knowledge follows naturally when you solve string problems that require counting or duplicate tracking. First Unique Character and Fraction to Recurring Decimal are good bridges between the two.

How many medium problems do I need to solve to be ready?+

Goldman Sachs has 102 medium-difficulty problems, which is 64% of the pool. You won't see all of them, but aim to solve 50-70 medium problems across array, string, and DP topics. That covers the variance in what you'll face during the OA.

Are hard problems worth studying before the OA?+

Hard problems make up 20 of 159 (12%). If you're strong on medium-tier array and DP, you'll recognize hard patterns. Focus on medium first, but know that Median of Two Sorted Arrays and Trapping Rain Water are high-probability hard problems worth drilling.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Goldman Sachs. StealthCoder is not affiliated with Goldman Sachs.