Goldman Sachs Interview Prep (Analyst / Associate / VP)
Goldman Sachs runs the largest engineering organisation of any bank, and the loop looks like a bank’s rather than a product company’s. The coding bar sits at solid LeetCode medium with dynamic programming over-represented: DP is the single biggest bucket in the tagged data below by a wide margin. What distinguishes the loop is not algorithmic difficulty but breadth — databases, concurrency, OOP and the software lifecycle are asked about directly rather than assumed.
Two rounds catch people out. The first is the recorded HireVue-style video screen used in campus and analyst hiring, which candidates routinely treat as an administrative step and fail. The second is the motivation conversation. “Why engineering at a bank, and why Goldman rather than a product company” is a scored question here, not small talk, and a vague answer reads as someone using Goldman as a fallback.
Interview Process
| Stage | Duration | Focus |
|---|---|---|
| Application and Resume Screen | — | Division and role matching |
| Recorded Video Interview (HireVue) | 20-30 min | Pre-set questions, no live interviewer |
| Online Assessment (HackerRank) | 60-120 min | 2-3 coding problems plus CS and aptitude MCQs |
| Technical Screen (CoderPad) | 45-75 min | Resume, then 1-2 problems you must run |
| Superday: Coding | 45-60 min | DSA at medium, complexity discussion |
| Superday: Fundamentals and Design | 45-60 min | OOP, databases, concurrency, SDLC, architecture |
| Superday: Fit and Motivation | 30-45 min | Why finance, why Goldman, team preference |
The Superday is three to five back-to-back rounds in a single block rather than a spread-out onsite, and the mix differs by division — Core Engineering, Risk, Asset and Wealth Management platforms, and Marquee all hire independently.
On levels: Goldman uses banking titles, so Analyst maps roughly to SDE-1, Associate to SDE-2, and VP to senior. System design appears from Associate upward and stays moderate; nobody is asked to scale a social feed to a billion users, but transaction correctness and audit trails come up constantly.
The round people underestimate is the recorded video screen. There is no interviewer to read the room for you, the clock runs, and answers that would pass live as thinking-out-loud come across as unprepared on camera.
What Goldman Sachs Actually Tests
Derived from 264 reported Goldman Sachs-tagged problems. Difficulty mix:
| Difficulty | Count | Share |
|---|---|---|
| Easy | 46 | 17% |
| Medium | 169 | 64% |
| Hard | 49 | 19% |
Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.
Where those problems fall by pattern:
| Rank | Pattern | Problems | Share of list |
|---|---|---|---|
| 1 | Dynamic Programming | 51 | 19% |
| 2 | Arrays & Hashing | 28 | 11% |
| 3 | Sliding Window & Two Pointers | 25 | 9% |
| 4 | Binary Search | 23 | 9% |
| 5 | Strings | 20 | 8% |
| 6 | Trees | 19 | 7% |
| 7 | Graphs | 16 | 6% |
| 8 | Heap / Priority Queue | 15 | 6% |
| 9 | Stack & Monotonic Stack | 13 | 5% |
| 10 | Intervals, Greedy & Sorting | 13 | 5% |
Goldman Sachs Signature Problems
These rank high on Goldman Sachs’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.
| # | Problem | Pattern | Difficulty | Also asked at | Link |
|---|---|---|---|---|---|
| 1 | Fraction to Recurring Decimal | Math + Hash Table | Medium | 9 of 142 | LeetCode → |
| 2 | High Five | Heap | Easy | 2 of 142 | LeetCode → |
| 3 | Minimum Path Sum | DP | Medium | 14 of 142 | Solve → |
| 4 | Knight Probability in Chessboard | DP | Medium | 4 of 142 | LeetCode → |
| 5 | Valid Arrangement of Pairs | Semi-Eulerian Graph + Eulerian Circuit | Hard | 3 of 142 | LeetCode → |
| 6 | Minimum Length of String After Deleting Similar Ends | Two Pointers | Medium | 3 of 142 | LeetCode → |
| 7 | Corporate Flight Bookings | Prefix Sum | Medium | 5 of 142 | LeetCode → |
| 8 | Minimum Cost Homecoming of a Robot in a Grid | Greedy | Medium | 2 of 142 | LeetCode → |
| 9 | Range Product Queries of Powers | Bit Manipulation + Prefix Sum | Medium | 4 of 142 | LeetCode → |
| 10 | Print Zero Even Odd | Concurrency | Medium | 2 of 142 | LeetCode → |
| 11 | Construct Smallest Number From DI String | Backtracking + Stack | Medium | 3 of 142 | LeetCode → |
| 12 | Count Collisions of Monkeys on a Polygon | Recursion + Math | Medium | 3 of 142 | LeetCode → |
| 13 | Count Number of Texts | DP | Medium | 3 of 142 | LeetCode → |
| 14 | Allocate Mailboxes | DP | Hard | 4 of 142 | LeetCode → |
If you are short on time, these carry more Goldman Sachs-specific signal per hour than the universal top-100 lists.
Reported in the Last Six Months
The recency-filtered slice of Goldman Sachs’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 1 | Trapping Rain Water | Monotonic Stack + Two Pointers | Hard | Solve → |
| 2 | Sell Diminishing-Valued Colored Balls | Heap + Binary Search | Medium | LeetCode → |
| 3 | Longest Palindromic Subsequence | DP | Medium | Solve → |
| 4 | High Five | Heap | Easy | LeetCode → |
| 5 | Median of Two Sorted Arrays | Divide and Conquer + Binary Search | Hard | Solve → |
| 6 | Minimum Path Sum | DP | Medium | Solve → |
| 7 | Count Paths That Can Form a Palindrome in a Tree | Bit Manipulation + Tree | Hard | LeetCode → |
| 8 | Domino and Tromino Tiling | DP | Medium | LeetCode → |
| 9 | Fraction to Recurring Decimal | Math + Hash Table | Medium | LeetCode → |
| 10 | Merge Intervals | Quicksort | Medium | Solve → |
| 11 | Container With Most Water | Greedy + Two Pointers | Medium | Solve → |
| 12 | First Unique Character in a String | Queue | Easy | Solve → |
| 13 | Longest Substring Without Repeating Characters | Sliding Window | Medium | Solve → |
| 14 | LRU Cache | Doubly Linked List + Design | Medium | Solve → |
| 15 | Number of Islands | Union-Find + BFS | Medium | Solve → |
System Design (HLD) Problems Asked at Goldman Sachs
| # | Problem | Difficulty | Link |
|---|---|---|---|
| 1 | Stock Exchange / Broker | Advanced | Read → |
| 2 | Payment System | Advanced | Read → |
| 3 | Rules Engine (risk and compliance checks) | Intermediate | Read → |
| 4 | Distributed Message Queue | Advanced | Read → |
| 5 | Metrics and Monitoring System | Intermediate | Read → |
| 6 | Distributed Key-Value Store | Advanced | Read → |
| 7 | Distributed Job Scheduler (batch and end-of-day runs) | Advanced | Read → |
| 8 | Notification System | Intermediate | Read → |
| 9 | Unique ID Generator | Beginner | Read → |
| 10 | Rate Limiter | Beginner | Read → |
LLD / Machine Coding Problems Asked at Goldman Sachs
Goldman does not advertise a machine coding round, but the fundamentals round regularly turns into “model this in classes and tell me what happens when the requirement changes”. These are the exercises that transfer.
| # | Problem | Difficulty | Link |
|---|---|---|---|
| 1 | Order Management System | Intermediate | Read → |
| 2 | Payment Wallet | Intermediate | Read → |
| 3 | Multilevel Cache | Intermediate | Read → |
| 4 | Task Scheduler | Intermediate | Read → |
| 5 | Library Management | Beginner | Read → |
| 6 | Rate Limiter | Beginner | Read → |
DSA Problems Asked at Goldman Sachs
79 problems across 12 pattern groups. Each group is allocated in proportion to its real share of Goldman Sachs’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.
Dynamic Programming
State definition is the whole battle. Say the recurrence out loud before you write the table. Showing the top 14 of 21 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 1 | Trapping Rain Water | Monotonic Stack + Two Pointers | Hard | Solve → |
| 2 | Minimum Path Sum | DP | Medium | Solve → |
| 3 | Decode Ways | DP | Medium | Solve → |
| 4 | Best Time to Buy and Sell Stock | DP | Easy | Solve → |
| 5 | Knight Probability in Chessboard | DP | Medium | LeetCode → |
| 6 | Longest Palindromic Subsequence | DP | Medium | Solve → |
| 7 | Maximum Subarray | Divide and Conquer + DP | Medium | Solve → |
| 8 | Best Time to Buy and Sell Stock II | Greedy + DP | Medium | Solve → |
| 9 | Pascal’s Triangle | DP | Easy | Solve → |
| 10 | Optimal Account Balancing | Bitmask + Backtracking | Hard | Solve → |
| 11 | Allocate Mailboxes | DP | Hard | LeetCode → |
| 12 | Coin Change | Complete Knapsack + Knapsack Problem | Medium | Solve → |
| 13 | Count Number of Texts | DP | Medium | LeetCode → |
| 14 | Count Palindromic Subsequences | DP | Hard | Solve → |
Strings
Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 11 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 15 | Fraction to Recurring Decimal | Math + Hash Table | Medium | LeetCode → |
| 16 | Group Anagrams | Sorting + Hash Table | Medium | Solve → |
| 17 | Robot Bounded In Circle | Simulation + Math | Medium | LeetCode → |
| 18 | Robot Return to Origin | Simulation + String | Easy | LeetCode → |
| 19 | Better Compression of String | Counting + Sorting | Medium | LeetCode → |
| 20 | Determine if Two Events Have Conflict | String + Array | Easy | LeetCode → |
| 21 | Minimum Number of Chairs in a Waiting Room | Simulation + String | Easy | LeetCode → |
| 22 | Perform String Shifts | Math + String | Easy | LeetCode → |
| 23 | Check if the Sentence Is Pangram | Hash Table + String | Easy | LeetCode → |
| 24 | Consecutive Characters | String | Easy | LeetCode → |
| 25 | String to Integer (atoi) | String | Medium | Solve → |
Arrays & Hashing
Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 11 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 26 | Two Sum | Hash Table + Array | Easy | Solve → |
| 27 | Find the Minimum Amount of Time to Brew Potions | Prefix Sum | Medium | LeetCode → |
| 28 | Corporate Flight Bookings | Prefix Sum | Medium | LeetCode → |
| 29 | Minimum Moves to Capture The Queen | Enumeration + Math | Medium | LeetCode → |
| 30 | Pairs of Songs With Total Durations Divisible by 60 | Counting + Hash Table | Medium | LeetCode → |
| 31 | Count Collisions of Monkeys on a Polygon | Recursion + Math | Medium | LeetCode → |
| 32 | Keep Multiplying Found Values by Two | Simulation + Sorting | Easy | LeetCode → |
| 33 | Product of Array Except Self | Prefix Sum | Medium | Solve → |
| 34 | Sort the Jumbled Numbers | Sorting + Array | Medium | LeetCode → |
| 35 | Rotting Oranges | BFS | Medium | Solve → |
| 36 | Subarray Sum Equals K | Prefix Sum | Medium | Solve → |
Sliding Window & Two Pointers
Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 8 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 37 | Container With Most Water | Greedy + Two Pointers | Medium | Solve → |
| 38 | Longest Substring Without Repeating Characters | Sliding Window | Medium | Solve → |
| 39 | String Compression | Two Pointers | Medium | Solve → |
| 40 | Minimum Length of String After Deleting Similar Ends | Two Pointers | Medium | LeetCode → |
| 41 | Backspace String Compare | Stack + Two Pointers | Easy | Solve → |
| 42 | Number of Perfect Pairs | Two Pointers | Medium | LeetCode → |
| 43 | 3Sum | Two Pointers | Medium | Solve → |
| 44 | Longest Repeating Character Replacement | Sliding Window | Medium | Solve → |
Binary Search
Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 7 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 45 | Median of Two Sorted Arrays | Divide and Conquer + Binary Search | Hard | Solve → |
| 46 | Search in Rotated Sorted Array | Binary Search | Medium | Solve → |
| 47 | Find Minimum in Rotated Sorted Array | Binary Search | Medium | Solve → |
| 48 | Successful Pairs of Spells and Potions | Binary Search + Two Pointers | Medium | LeetCode → |
| 49 | Search a 2D Matrix | Binary Search | Medium | Solve → |
| 50 | Sqrt(x) | Newton’s Method + Binary Search | Easy | Solve → |
| 51 | Capacity To Ship Packages Within D Days | Binary Search | Medium | Solve → |
Heap / Priority Queue
Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 6 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 52 | High Five | Heap | Easy | LeetCode → |
| 53 | Sell Diminishing-Valued Colored Balls | Heap + Binary Search | Medium | LeetCode → |
| 54 | Car Pooling | Prefix Sum + Heap | Medium | Solve → |
| 55 | Kth Largest Element in an Array | Quickselect + Divide and Conquer | Medium | Solve → |
| 56 | Top K Frequent Elements | Quickselect + Bucket Sort | Medium | Solve → |
| 57 | Shortest Subarray with Sum at Least K | Monotonic Queue + Sliding Window | Hard | Solve → |
Stack & Monotonic Stack
Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 6 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 58 | First Unique Character in a String | Queue | Easy | Solve → |
| 59 | Find the Winner of the Circular Game | Queue | Medium | Solve → |
| 60 | Remove All Adjacent Duplicates in String II | Stack | Medium | Solve → |
| 61 | Valid Parentheses | Bracket Sequences + Stack | Easy | Solve → |
| 62 | Asteroid Collision | Stack | Medium | Solve → |
| 63 | Daily Temperatures | Monotonic Stack | Medium | Solve → |
Graphs
Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 4 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 64 | Number of Islands | Union-Find + BFS | Medium | Solve → |
| 65 | Valid Arrangement of Pairs | Semi-Eulerian Graph + Eulerian Circuit | Hard | LeetCode → |
| 66 | Longest Consecutive Sequence | Union-Find | Medium | Solve → |
| 67 | Open the Lock | Bidirectional Search + BFS | Medium | Solve → |
Trees
Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 4 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 68 | Sliding Window Maximum | Range Query + Monotonic Queue | Hard | Solve → |
| 69 | Binary Tree Cameras | DP on Trees + Binary Tree | Hard | Solve → |
| 70 | Binary Tree Maximum Path Sum | DP on Trees + Binary Tree | Hard | Solve → |
| 71 | The Skyline Problem | Sweep Line + Fenwick Tree | Hard | Solve → |
Backtracking
Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 72 | Permutations III | Backtracking | Medium | LeetCode → |
| 73 | Construct Smallest Number From DI String | Backtracking + Stack | Medium | LeetCode → |
| 74 | N-Queens | Algorithm X + Backtracking | Hard | Solve → |
Intervals, Greedy & Sorting
Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 75 | Merge Intervals | Quicksort | Medium | Solve → |
| 76 | Minimum Cost Homecoming of a Robot in a Grid | Greedy | Medium | LeetCode → |
| 77 | Gas Station | Greedy | Medium | Solve → |
Tries & String Search
Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 2 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 78 | Design HashMap | Hash Function + Linked List | Easy | Solve → |
| 79 | Longest Palindromic Substring | Manacher + Two Pointers | Medium | Solve → |
Goldman Sachs’s Favourite Patterns (Ranked)
| Rank | Pattern | Frequency | Problems on list | Start with |
|---|---|---|---|---|
| 1 | Dynamic Programming | Very High | 21 (23%) | Trapping Rain Water, Minimum Path Sum, Decode Ways |
| 2 | Strings | High | 11 (12%) | Fraction to Recurring Decimal, Group Anagrams, Robot Bounded In Circle |
| 3 | Arrays & Hashing | High | 11 (12%) | Two Sum, Find the Minimum Amount of Time to Brew Potions, Corporate Flight Bookings |
| 4 | Sliding Window & Two Pointers | Medium-High | 8 (9%) | Container With Most Water, Longest Substring Without Repeating Characters, String Compression |
| 5 | Binary Search | Medium-High | 7 (8%) | Median of Two Sorted Arrays, Search in Rotated Sorted Array, Find Minimum in Rotated Sorted Array |
| 6 | Heap / Priority Queue | Medium-High | 6 (7%) | High Five, Sell Diminishing-Valued Colored Balls, Car Pooling |
| 7 | Stack & Monotonic Stack | Medium | 6 (7%) | First Unique Character in a String, Find the Winner of the Circular Game, Remove All Adjacent Duplicates in String II |
| 8 | Graphs | Medium | 4 (4%) | Number of Islands, Valid Arrangement of Pairs, Longest Consecutive Sequence |
| 9 | Trees | Medium | 4 (4%) | Sliding Window Maximum, Binary Tree Cameras, Binary Tree Maximum Path Sum |
| 10 | Backtracking | Medium | 3 (3%) | Permutations III, Construct Smallest Number From DI String, N-Queens |
How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Strings, Arrays & Hashing covers the bulk of what Goldman Sachs actually asks. The rest is insurance for the one round that goes somewhere unexpected.
Behavioural Round
| # | Question |
|---|---|
| 1 | Why do you want to do engineering at a bank rather than at a product company? |
| 2 | Why Goldman Sachs specifically, and which division interests you? |
| 3 | Tell me about a time you found a defect that nobody else had noticed. |
| 4 | Describe a time you had to deliver something where being wrong would have cost money. |
| 5 | Tell me about a time you disagreed with a more senior engineer. How did it resolve? |
| 6 | Describe a situation where you had to raise a concern that was unpopular. |
| 7 | Tell me about a project where you had to work with people outside engineering. |
| 8 | Walk me through the most complex system you have worked on and what you owned in it. |
Goldman interviewers probe against the firm’s stated business principles — client service, integrity, excellence and teamwork. Prepare at least one story where you escalated a problem rather than quietly absorbing it; controls culture at a bank rewards raising the flag, and candidates who describe heroically hiding a mistake score badly.
14-Day Prep Plan
Built from the pattern ranking above, so the heaviest topics get the most time.
| Day | Focus | Problems |
|---|---|---|
| 1 | Dynamic Programming (part 1) | Trapping Rain Water, Minimum Path Sum, Decode Ways |
| 2 | Dynamic Programming (part 2) | Best Time to Buy and Sell Stock, Knight Probability in Chessboard, Longest Palindromic Subsequence |
| 3 | Strings (part 1) | Fraction to Recurring Decimal, Group Anagrams, Robot Bounded In Circle |
| 4 | Strings (part 2) | Robot Return to Origin, Better Compression of String, Determine if Two Events Have Conflict |
| 5 | Arrays & Hashing (part 1) | Two Sum, Find the Minimum Amount of Time to Brew Potions, Corporate Flight Bookings |
| 6 | Arrays & Hashing (part 2) | Minimum Moves to Capture The Queen, Pairs of Songs With Total Durations Divisible by 60, Count Collisions of Monkeys on a Polygon |
| 7 | Sliding Window & Two Pointers | Container With Most Water, Longest Substring Without Repeating Characters, String Compression |
| 8 | Binary Search | Median of Two Sorted Arrays, Search in Rotated Sorted Array, Find Minimum in Rotated Sorted Array |
| 9 | Heap / Priority Queue | High Five, Sell Diminishing-Valued Colored Balls, Car Pooling |
| 10 | Stack & Monotonic Stack | First Unique Character in a String, Find the Winner of the Circular Game, Remove All Adjacent Duplicates in String II |
| 11 | Graphs | Number of Islands, Valid Arrangement of Pairs, Longest Consecutive Sequence |
| 12 | Mock round | Two problems in 45 minutes, timed, no hints. Simulate the real round. |
| 13 | Revision | Redo the problems you failed or needed a hint on. |
| 14 | Light review + rest | Re-read your pattern notes. Sleep early. |
Tips for Goldman Sachs Interviews
- Drill dynamic programming first. It is the largest pattern bucket in the data above by a clear margin. Grid DP, subsequence DP, knapsack variants and interval DP all appear, and no other topic gives you as much coverage per hour here.
- Treat the recorded video round as a real interview. Write and rehearse answers to “why Goldman”, “why engineering”, and one project story, then record yourself once before the real thing. It is the cheapest round to prepare for and a common place to be dropped.
- Prepare CS fundamentals as a separate subject. Database indexing and transaction isolation, OOP and SOLID, threads and locks, garbage collection, and the software lifecycle. These are asked directly at Goldman in a way they are not at Google.
- Write code that compiles and runs. The technical screen uses a real editor with execution, so leaving pseudocode or an un-run function reads much worse here than on a whiteboard. Test with an edge case before you say you are done.
- Have a division-level answer ready. Saying you want to work on “something interesting” is a weak answer when the interviewer is from Risk and you have not asked what Risk engineering does.
- Say what happens when money is involved. Idempotent processing, audit trail, reconciliation and the end-of-day batch. Volunteering these in a design round separates candidates who understand the domain from candidates reciting a scaling checklist.
- Expect follow-up on your own resume. Goldman interviewers go deep on one project rather than wide across five. Pick the system you can defend at architecture level and know the parts you did not build.
Other Company Prep
- Morgan Stanley Interview Prep →
- Deutsche Bank Interview Prep →
- Bloomberg Interview Prep →
- Citadel Interview Prep →
- All Company Guides →
- Back to Interview Guide →
Round structure, durations and assessment platforms reflect commonly reported candidate experience alongside Goldman's published student recruiting material rather than one official process. Goldman hires through many independent divisions and the loop differs between campus, analyst and experienced routes — the recorded video round in particular is not universal. Confirm your round list with your recruiter.