Goldman Sachs Intermediate Coding Interview Questions
97 intermediate coding problems are tagged as asked at Goldman Sachs in interviews and online assessments reported by candidates. By difficulty they split into 0 basic, 97 intermediate and 0 advanced. The topics they most often combine with are Array, String, Matrix, Math.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Goldman Sachs tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Maximum Subarray (Intermediate)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Kth Largest Element (Intermediate)
- Minimum Size Subarray Sum (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Daily Temperatures (Intermediate)
- Integer to Roman (Intermediate)
- Roman to Integer (Intermediate)
- Count Primes (Intermediate)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Subarrays With Product Less Than K (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Longest Substring With At Most K Letters (Intermediate)
- Maximum Events Attended (Intermediate)
- Shortest Bridge Between Two Islands (Intermediate)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Minimum Path Sum (Intermediate)
- Partition Equal Subset Sum (Intermediate)
- Maximum Circular Subarray (Intermediate)
- Best Time to Buy and Sell Stock II (Intermediate)
- Next Permutation (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Longest Palindromic Subsequence (Intermediate)
- Shortest Path In Binary Grid (Intermediate)
- Course Schedule Feasible (Intermediate)
- Running Kth Largest (Intermediate)
- Weighted Job Scheduling (Intermediate)
- LFU Cache Operations (Intermediate)
- Minimum Number of Perfect Squares (Intermediate)
- Russian Doll Envelopes (Intermediate)
- Snapshot Array (Intermediate)
- Text Justification (Intermediate)
- Odd Even Linked List (Intermediate)
- Swap Nodes in Pairs (Intermediate)
- Reorder Linked List (Intermediate)
- Validate Binary Search Tree (Intermediate)
- Count Good Nodes in Binary Tree (Intermediate)
- Zigzag Level Order Traversal (Intermediate)
- Lowest Common Ancestor of Two Values (Intermediate)
- Distribute Coins in Binary Tree (Intermediate)
- Rotting Oranges (Intermediate)
- Course Schedule Order (Intermediate)
- Snakes and Ladders (Intermediate)
- Open the Lock (Intermediate)
- Maximal Square (Intermediate)
- Minimum Falling Path Sum (Intermediate)
- Count Number of Texts (Intermediate)
- String to Integer (Intermediate)
- Word Search (Intermediate)
- Evaluate Reverse Polish Notation (Intermediate)
- Basic Calculator II (Intermediate)
- Asteroid Collision (Intermediate)
- 132 Pattern (Intermediate)
- Car Fleet (Intermediate)
- Design Circular Queue (Intermediate)
- Design Circular Deque (Intermediate)
- K Closest Points to Origin (Intermediate)
- Task Scheduler (Intermediate)
- Reorganize String (Intermediate)
- Ugly Number II (Intermediate)
- Single-Threaded CPU (Intermediate)
- Jump Game II (Intermediate)
- Car Pooling (Intermediate)
- Valid Sudoku (Intermediate)
- Rotate Image (Intermediate)
- Game of Life Step (Intermediate)
- Corporate Flight Bookings (Intermediate)
- 3Sum Triplets (Intermediate)
- Find First and Last Position (Intermediate)
Related
Frequently asked questions
How should I use the Goldman Sachs problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Goldman Sachs interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.