Goldman Sachs Coding Interview Questions: 14 Tagged Problems
14 coding problems tagged Goldman Sachs — 2 easy · 7 medium · 5 hard — with solutions in 13 languages. Plus a 2-week study plan by topic.
- Problems: 14
- By difficulty: 2 easy · 7 medium · 5 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
14 problems the CodeKairo catalogue tags as commonly asked in Goldman Sachs's coding rounds — 2 easy, 7 medium and 5 hard — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (7), Math (5) and Dynamic Programming (5). CodeKairo's Goldman Sachs — Aptitude Test mock covers the Goldman Sachs aptitude test pattern, the one paper in this catalogue where a careless guess is a losing strategy. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Goldman Sachs, which CodeKairo is not affiliated with.
Goldman Sachs study plan by topic
All 14 problems tagged Goldman Sachs over 2 weeks, about 8 h 55 min of solving, grouped by technique in the order they build on each other — Counting, Math, Prefix Sum and Binary Search and 6 more. It ends with the Goldman Sachs — Aptitude Test mock.
Week 1: Counting, Math, Prefix Sum +6
12 problems on Counting, Math, Prefix Sum, Binary Search, Queue, Matrix, Heap, Number Theory and Backtracking, easiest first within each topic.
- Number of Ways to Split a String Medium
- Pairs of Songs With Total Durations Divisible by 60 Medium
- Roman to Integer Easy
- Egg Drop With 2 Eggs and N Floors Medium
- Subarray Sums Divisible by K Medium
- Find Minimum in Rotated Sorted Array II Medium
- Super Egg Drop Hard
- First Unique Character in a String Easy
- Minimum Path Sum Medium
- IPO Hard
- Reaching Points Hard
- Construct Smallest Number From DI String Medium
Week 2: Dynamic Programming
2 problems on Dynamic Programming, easiest first.
Finally: the timed test
Sit the Goldman Sachs — Aptitude Test mock under the clock — the coding problems are only one part of the round.
Goldman Sachs test patterns
- Goldman Sachs — Aptitude Test pattern guide and timed mock
The Goldman Sachs interview process, round by round
All problems tagged Goldman Sachs
Easy (2)
- First Unique Character in a String Hash Table, String, Queue
- Roman to Integer Hash Table, Math, String
Medium (7)
- Egg Drop With 2 Eggs and N Floors Math, Dynamic Programming
- Construct Smallest Number From DI String String, Stack, Greedy
- Pairs of Songs With Total Durations Divisible by 60 Array, Hash Table, Counting
- Find Minimum in Rotated Sorted Array II Array, Binary Search
- Subarray Sums Divisible by K Array, Hash Table, Prefix Sum
- Number of Ways to Split a String String, Math, Counting
- Minimum Path Sum Array, Dynamic Programming, Matrix
Hard (5)
- Super Egg Drop Math, Binary Search, Dynamic Programming
- Reaching Points Math, Number Theory
- Best Time to Buy and Sell Stock IV Array, Dynamic Programming
- IPO Array, Greedy, Sorting
- Best Time to Buy and Sell Stock III Array, Dynamic Programming
Topics Goldman Sachs asks most
- Arrays 7 problems
- Math 5 problems
- Dynamic Programming 5 problems
- Strings 4 problems
- Hash Table 4 problems
- Counting 3 problems
- Binary Search 2 problems
- Greedy 2 problems
- Prefix Sum 1 problem
- Sorting 1 problem
- Stack 1 problem
- Queue 1 problem