Goldman Sachs Array Coding Interview Questions
69 array coding problems are tagged as asked at Goldman Sachs in interviews and online assessments reported by candidates. By difficulty they split into 10 basic, 47 intermediate and 12 advanced. The topics they most often combine with are Hash Table, Sorting, Sliding Window, Design.
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
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Product of Array Except Self (Intermediate)
- Move Zeroes (Basic)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- Kth Largest Element (Intermediate)
- Majority Element (Basic)
- Missing Number (Basic)
- Minimum Size Subarray Sum (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Sort Colors (Basic)
- Third Maximum Number (Basic)
- Find Pivot Index (Basic)
- Largest Rectangle in Histogram (Advanced)
- Daily Temperatures (Intermediate)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Candy Distribution (Advanced)
- Subarrays With Product Less Than K (Intermediate)
- Maximum Events Attended (Intermediate)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (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)
- Course Schedule Feasible (Intermediate)
- Running Kth Largest (Intermediate)
- Weighted Job Scheduling (Intermediate)
- LRU Cache Operations (Basic)
- LFU Cache Operations (Intermediate)
- Russian Doll Envelopes (Intermediate)
- Snapshot Array (Intermediate)
- Course Schedule Order (Intermediate)
- Burst Balloons (Advanced)
- Asteroid Collision (Intermediate)
- 132 Pattern (Intermediate)
- Car Fleet (Intermediate)
- Design Circular Queue (Intermediate)
- Design Circular Deque (Intermediate)
- K Closest Points to Origin (Intermediate)
- Single-Threaded CPU (Intermediate)
- Jump Game II (Intermediate)
- Corporate Flight Bookings (Intermediate)
- 3Sum Triplets (Intermediate)
- Sliding Window Maximum Values (Advanced)
- Shortest Subarray to Remove to Make Sorted (Advanced)
- Find First and Last Position (Intermediate)
- Single Element in a Sorted Array (Intermediate)
- Median of Two Sorted Arrays (Advanced)
- Successful Pairs of Spells and Potions (Intermediate)
- Design HashMap (Basic)
- Count Number of Teams (Intermediate)
- Minimum Cost to Reach City With Discounts (Advanced)
- Allocate Mailboxes (Advanced)
- Valid Triangle Number (Intermediate)
- Meeting Rooms III (Advanced)
- Minimum Increment to Make Array Unique (Intermediate)
- Running Median of Stream (Intermediate)
Related
- Goldman Sachs coding interview questions
- Array problems
- Goldman Sachs basic problems
- Goldman Sachs intermediate problems
- Goldman Sachs advanced problems
- Company interview roadmaps
- All interview guides
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.