Goldman Sachs Interview Questions
We track 46 interview questions reported from Goldman Sachs: 42 in Coding Questions, 3 in Behavioral. They average 2.7/5 difficulty — medium for a working engineer — and every one was reported by someone who sat the loop, not written by us. The topics that come up most: array, hashmap, string, simulation. 6 were reported asked within the last year — most recently October 2026.
Practice these on the problems board →Question mix
- Coding Questions42
- Behavioral3
- ML Fundamentals & Algorithms1
Difficulty
- 1/5 — warm-up1
- 2/5 — easy16
- 3/5 — medium25
- 4/5 — hard4
Asked for SWE (44), Quant (3), MLE (3), DS (1)
Topics Goldman Sachs asks about
Reported Goldman Sachs questions
Probability and Statistics Drill: Eight Numeric Problems
3/5A practice set of eight quick probability and statistics problems covering continuous densities, conditioning on card hands, dice, coin runs and a constrained optimisation. It checks how fluently you can recognise standard setups and turn them into exact answers. Subscribers can see the full problems and worked solutions.
ML Fundamentals & Algorithmsasked May 2026medium frequencyprobabilityexpectationstatisticsCombine Sorted Linked Lists
3/5Combine several already-ordered chains of linked nodes into one ordered chain that holds every node. The count of input chains may be large or as small as three, and some chains may be empty.
Coding Questionsasked June 2025low frequencyheaplinked-listmergeGoldman Hirevue Behavioral Bank (6 Questions)
2/5Preparing for the Goldman Sachs Hirevue requires navigating a tightly timed video assessment featuring multiple behavioral prompts alongside a technical communication challenge. Candidates must articulate past experiences dealing with professional integrity, shifting deadlines, and interpersonal conflicts under strict one-take constraints. Mastering these responses helps demonstrate both teamwork and structured problem-solving skills to recruiters. Unlocking the full set of recurring questions and expert response strategies requires a subscription.
Behavioralasked November 2025medium frequencyculture-fitintegritystar-methodClient Request That Breaks Firm Policy Before a Deal Closes
3/5A behavioral question about a client request that breaks firm policy just before an important deal closes. It tests your judgment and integrity: what you would decide, whom you would involve, and how you would communicate with the client.
BehavioralbehavioralstarethicsExplain Recursion to a Non-CS Audience
3/5A communication question that asks you to explain a basic programming idea to a listener with no technical background. It tests whether you can give a plain-words definition, say why the idea is useful and pick an everyday comparison, all without jargon.
Coding Questionsasked December 2024low frequencycommunicationcs-fundamentalsverbalImplement a Deque From Scratch
2/5A data-structure design question: build a double-ended queue of strings where every operation at either end takes constant time, including clear behaviour when the container is empty.
Coding Questionsdata-structurelinked-listqueueGoldman Sachs Quant Strat HireVue Behavioral and Big O
2/5This Goldman Sachs Quant Strat HireVue interview walkthrough prepares you for a mix of competency-based behavioral prompts and situational judgment dilemmas commonly faced in quantitative finance. You will examine how to articulate past achievements, navigate complex professional ethics conflicts, and resolve compliance breaches under pressure. The session highlights what top recruiters look for when evaluating candidate resilience, decision-making frameworks, and communication clarity. Review the complete questionnaire and detailed behavioral strategies by upgrading to a paid subscription.
BehavioralbehavioralstarethicsEarliest Non-Repeating Character
2/5A coding question on strings: given a piece of text, report the position, or the value, of the earliest character that appears only once. It covers repeated characters, case sensitivity, empty input and inputs with many thousands of characters.
Coding QuestionshashmapstringcountingHighest Average Score Per Person
3/5A coding question on aggregating scored records per person to find who has the best average, including how to break ties and handle empty input. A follow-up asks for the current best after every incoming record.
Coding Questionsasked October 2026medium frequencyarrayhashmapaggregationCount Unique Pairs With Difference K
3/5A coding question on counting how many distinct value pairs in an integer list differ by a given amount. It tests careful handling of duplicates and the special case of a zero difference. Subscribers can view the full statement and reference solution.
Coding Questionsasked October 2024single reporthashmapsetarrayCount Palindromic Substrings in a String
3/5A string-counting question where every occurrence of a text that reads the same in both directions is included, even when the same text appears at several positions. It also checks the handling of empty and one-letter inputs.
Coding Questionsasked October 2024single reportstringpalindromeexpand-around-centerMaximize the Minimized Three-Server Difficulty Split
4/5A coding question about splitting rated software modules across three servers when a checker then picks one module per server to make a spread of ratings small. The learner chooses the split that leaves the checker's best spread as large as possible and returns that value.
Coding Questionsasked November 2025low frequencyarraygreedysortingSmallest Missing Positive Integer
4/5A coding question on an unsorted integer array that may contain non-positive and out-of-range values. The task is to find the smallest positive integer absent from it within a linear time bound.
Coding Questionsasked June 2025single reportarraycyclic-sortin-placeZigzag Iterator for Two 1D Vectors
3/5Build an iterator that alternates between two sequences, continuing with whichever still has elements once the other runs out. This Goldman Sachs question is a design exercise with an obvious follow-up: the clean answer generalises from two sequences to any number by holding the live cursors in a queue. You will keep the alternation correct when the lengths differ, report exhaustion accurately, and avoid copying the inputs. The full problem and the model implementation require a subscription.
Coding QuestionsiteratorarrayqueueHash Map With Separate Chaining
3/5A coding question on building a key-value table in which different keys can map to the same slot. You decide how to store colliding keys, when to enlarge the table, and how to keep operations fast on average.
Coding Questionsasked November 2024single reporthashmapcomplexity-analysiscs-fundamentalsMinimize the Sum of Distinct Counts Across All Prefixes
2/5A coding question about rearranging repeated integers so that a cumulative score over prefixes is as small as possible. It tests whether the candidate can turn a global ordering objective into a compact computation while handling ties and extreme multiplicities correctly.
Coding Questionsasked October 2026single reportcodingarrayhash-mapValidate Triangle and Classify Point Inclusion
2/5A coding question on computational geometry with integer coordinates: check that three points make a genuine triangle, then report which of two further points fall within it, edges included. It tests exact arithmetic and careful handling of degenerate and boundary cases.
Coding Questionsasked October 2024single reportgeometrymathareaCount Strictly Increasing Subarrays of Length K
2/5Featured in recent Goldman Sachs technical assessments, this problem challenges you to scan an integer array and count every contiguous subsegment of a specific size that maintains a strictly ascending order. It serves as a fantastic test of sliding window techniques, sequence tracking, and efficient array iteration. Mastering this pattern helps build confidence for similar subsegment query tasks. Unlock the full problem statement, algorithmic breakdown, and optimal source code with a paid subscription.
Coding Questionsarraysliding-windowrun-lengthFind the Damaged Toy
2/5Work out which child in a circle receives the final item when handing them out one at a time from a chosen starting position. This Goldman Sachs question is modular arithmetic in disguise, and a loop over every item is unnecessary: the destination is a single expression. You will get the one-based labelling right, handle a count larger than the circle, and avoid an off-by-one at the wrap point. A subscription unlocks the full problem and the reference solution.
Coding QuestionsmathsimulationmoduloEqualize Letter Frequencies With Add / Remove
3/5Find the fewest single-letter additions or deletions that leave every letter still present in a word appearing the same number of times. This Goldman Sachs question is a counting problem with a search over targets: each candidate common frequency implies a cost, and the minimum across candidates is the answer. You will tabulate letter frequencies, evaluate each target frequency, and remember that deleting a letter entirely is allowed. Subscribers can read the complete problem and the model solution.
Coding Questionsasked September 2025stringhashmapgreedyAlternating Plus/Multiply on Even and Odd Index Streams
2/5A coding question on simulating two interleaved running computations over one array. It tests careful reading of an unusual rule, per-stream bookkeeping, and comparing the parity of two final values.
Coding Questionsasked October 2024single reportarraysimulationparityBitwise XOR Subsequences
3/5Find the longest subsequence whose every neighbouring pair combines under bitwise exclusive-or to a fixed value. This Goldman Sachs question hides a neat structural fact: the constraint forces the chosen values to alternate between exactly two numbers, so the search collapses to counting alternations rather than exploring subsequences. You will recognise that a single element is always acceptable, handle the special case where the target is zero, and keep the scan linear. The complete problem and the reference solution are available to subscribers.
Coding QuestionsarraybitwisexorLongest Subarray With Sum At Most K
3/5An array coding question: given non-negative numbers and a budget, report how long the longest contiguous stretch can be without its sum going over the limit. It checks boundary handling for empty inputs, zeros and exact matches, with a follow-up on allowing negative values.
Coding Questionsasked October 2024single reporttwo-pointersliding-windowarrayCount Letter Decodings of a Digit String
3/5A coding question about digit strings produced by writing letters as their alphabet positions: find the number of distinct letter sequences that encode to a given digit string, with careful handling of zeros.
Coding Questionsasked July 2025low frequencycountingdynamic-programmingstringMinimum Conference Rooms for a Day's Schedule
3/5A coding question on scheduling shared resources for a set of time ranges. It tests how a candidate counts demand at the busiest moment and handles ranges that merely touch.
Coding Questionsasked October 2026single reportcodingintervalsheapEffective Manager
3/5A coding question on picking a subset of meetings and an ordering for them so that a running score that starts at zero stays strictly positive after each one, with the goal of holding as many as possible.
Coding Questionsarrayprefix sumgreedyFIFO Queue from Two Stacks
2/5A coding question on building a first-in, first-out queue out of two last-in, first-out stacks, with push, pop and an error on an empty queue.
Coding Questionsstackqueuedata structuresIs Possible
2/5Decide whether one pair of numbers can become another when the only move replaces one of them with the sum of both. This Goldman Sachs question is best attacked in reverse: from the target, the larger value has a single possible predecessor, so the backward walk is forced and remainders let you skip many steps at once. You will handle the cases where one coordinate stops changing, and return the required string verdict rather than a boolean. The full problem and the reference solution require a subscription.
Coding QuestionsmathgreedysearchMaximum-Sum Simple Path in a Small Grid
3/5A coding question on a grid of positive and negative numbers where a walk may not step on any cell twice. It covers exhaustive search with undo and why negative cells make the best route non-obvious.
Coding Questionsasked November 2024single reportdfsbacktrackingmatrixAnagram Queries on Word List
2/5A coding question on answering many lookups against a fixed word list: for each query, return every listed word that uses exactly the same letters, in sorted order. Duplicates, case and queries with no match all have defined behavior.
Coding Questionsasked October 2024single reportstringhashmapsortingClockwise Outside-In Walk of a Grid
3/5A coding question on listing every value of a rectangular grid along a clockwise path from the outer edge toward the centre. It checks that non-square shapes, lone rows, lone columns and empty grids yield each value exactly once.
Coding Questionsasked November 2024single reportarrayboundary-pointersmatrixEncircular
3/5Simulate a machine on an endless plane that repeats a command sequence forever, and decide whether it stays near its starting point. This Goldman Sachs question has a compact proof behind it: after one pass, the net displacement and the final heading together determine whether four passes bring the machine home. You will track heading changes in place, accumulate displacement, and explain why one pass is enough to decide. The full problem and the model solution require a subscription.
Coding QuestionssimulationgeometrystringsEncode Repeated Characters with Counts
3/5A coding question on shortening a list of characters by replacing each group of repeats with the character and how many times it occurs, including counts of ten or more.
Coding Questionsasked December 2024low frequencytwo-pointerstringcompressionProcess Starvation Time
3/5Reported as a Goldman Sachs coding challenge, this problem asks you to calculate the waiting periods for elements processed in reverse order based on their priority levels. It tests your ability to efficiently identify relative dominance and compute duration metrics using stack-based or monotonic algorithmic patterns. This exercise evaluates your knack for handling reverse chronological dependencies and queue dynamics under strict constraints. Gain immediate access to the full problem statement and expert solution by subscribing.
Coding Questionsasked September 2025low frequencyarraymonotonic-stacksimulation25 Horses, 5 Lanes: Find the Three Fastest
3/5A coding puzzle about ranking 25 horses on a track that holds five at a time and has no timer. You design a race schedule that identifies the single quickest horse, then the quickest three in order, without exceeding a set race budget.
Coding QuestionspuzzlesortingtournamentTransaction Authorizer With Fraud Rules
3/5A coding question on building an in-memory payment authorizer as a class. It tests applying several business rules in a defined order, keeping per-user spending state over a rolling time window, getting window boundaries and money arithmetic exactly right, and meeting a per-call time bound.
Coding Questionsasked February 2026single reporthashmapobject-designpaymentWater Trapped Between Elevation Bars
4/5A coding question on an elevation map of bars that collects rainwater in its dips. The learner computes the total trapped volume, covering flat, rising and falling shapes.
Coding Questionsasked December 2024low frequencytwo-pointerarraymonotonic-stackSimulate Chairs Required for Customer Events
2/5A coding question about simulating a stream of arrival and departure events to find how many seats a venue must provide. It tests careful state tracking, including what happens when a departure has nothing to remove.
Coding Questionsasked October 2024single reportsimulationstringcountersBitwise XOR Subsequences
3/5Find the longest contiguous stretch of an array whose combination under bitwise exclusive-or equals a target. This Goldman Sachs question is the prefix-xor-and-hash-map pattern: because the operation is its own inverse, the first occurrence of each prefix value is what gives the longest span. You will store first occurrences only, seed the map for the empty prefix, and handle a target of zero. A subscription unlocks the complete problem and the model solution.
Coding QuestionsarraybitwisexorExtend Queue: Min-Size And Min-Sum Selectors
3/5A data structure design question on keeping aggregate statistics of many queues up to date so the shortest queue and the queue with the smallest total can be found quickly after each change.
Coding Questionsasked June 2025single reportdata-structuredesignheapMinimum Selections To Clear Author Grid
4/5A coding question about clearing a grid of labelled items with as few selections as possible, where each selection affects only items with the same label that share its row or column. It asks you to model the effect of one selection and to find the exact minimum under a stated size limit per label.
Coding Questionsasked September 2025single reportgridgraphbipartite-matchingCount Square Subgrids For Each Query
2/5A coding question on counting how many square sub-grids fit inside rectangular grids, answering several grid-size queries at once. It tests careful counting by side length and handling of degenerate sizes.
Coding Questionsasked September 2025single reportmathgridcombinatoricsProduct of Min and Max Under Push/Pop Stream
3/5A coding question on maintaining a changing collection of numbers that allows repeats. After every insertion or removal you must report a value derived from its two extremes, including when the collection is empty.
Coding Questionsdata-structureheapmultisetCompliance Alerts From Trailing-Average Sliding Window
2/5Count the minutes at which recent call volume, averaged over a fixed trailing span, exceeds a limit. Spans that are not yet full never count, and an average equal to the limit does not trigger an alert.
Coding Questionsasked October 2024single reportsliding-windowarrayrunning-sumSecond-Smallest Unique Element
2/5A coding question on finding the second-smallest value among the entries of an integer array that occur exactly once. It defines what happens when fewer than two such values exist and asks for a linear-time approach.
Coding Questionsasked November 2024arrayhashmapMovement Command Controller
1/5Practice string parsing and state management with this introductory coding prompt from Goldman Sachs interviews. The challenge requires processing a sequence of directional instructions to update coordinates on a grid using a dispatch table, with follow-ups addressing case insensitivity and robust input validation. It is an excellent drill for beginners focusing on control flow and clean code structure. The complete problem statement and model implementation are available exclusively to subscribers.
Coding Questionssimulationstringhashmap
Companies that ask similar questions
Goldman Sachs interview FAQ
- How many Goldman Sachs interview questions are available?
- 46 reported Goldman Sachs questions, the largest group being Coding Questions (42).
- How hard is the Goldman Sachs interview?
- Across the questions we track, Goldman Sachs averages 2.7 out of 5: 1 at 1/5, 16 at 2/5, 25 at 3/5, 4 at 4/5.
- What topics does Goldman Sachs ask about?
- Most often array, hashmap, string, simulation, greedy.
- Are these Goldman Sachs questions still current?
- The most recent Goldman Sachs report here is from October 2026, and 6 were reported asked within the last twelve months. Dates come from the interview reports themselves, so they reflect when candidates actually sat the question.