Goldman Sachs interview practice

Goldman Sachs interview questions

119 questions; coding questions sorted by reports.

FastPrep has 103 coding questions tagged Goldman Sachs, plus 10 system design, 3 low-level design and 3 project coding questions. Filter them by interview stage and open any one to practice it.

Questions
119 (103 coding, 16 design and project)
By stage
Online Assessment 43 · Phone Screen 31 · Onsite 39
Updated

Question list

All 103 Goldman Sachs coding questions

Sorted by how many times each question was reported. Pick a stage to see only its questions.

Showing 103 of 103 Goldman Sachs questions.

QuestionDifficultyStageReports
Root of the Largest TreeGraphHash TableMediumPhone · Onsite7 reports · last Oct 2026
Best Average Student ScoreArrayHash TableEasyPhone · Onsite6 reports · last Oct 2026
Palindrome CounterStringDynamic ProgrammingMediumOA5 reports · last Oct 2026
Trapping Rain WaterArrayTwo PointersMediumPhone4 reports · last Nov 2026
Least Recently Used CacheHash TableDesignMediumOnsite4 reports · last Sep 2026
First Non-Repeating CharacterStringHash TableEasyPhone · Onsite3 reports · last Oct 2026
Maximum Rocks on a North-or-East Grid PathArrayMatrixMediumPhone3 reports · last Sep 2026
Threshold AlertsArraySliding WindowEasyOA3 reports · last Jul 2026
Number of IslandsMatrixGraphMediumOA · Phone · Onsite3 reports · last May 2026
Maximum Ones After K OperationsStringGreedyEasyOA2 reports · last Nov 2026
Longest Palindromic SubsequenceStringDynamic ProgrammingMediumOA2 reports · last Oct 2026
Meeting RoomsArraySortingEasyPhone · Onsite2 reports · last Oct 2026
Count Staircase WaysDynamic ProgrammingMathEasyPhone2 reports · last Oct 2026
Minimum Distinct Prefix CostArrayHash TableMediumOA2 reports · last Oct 2026
Dungeon HealthDynamic ProgrammingMatrixHardOnsite2 reports · last Sep 2026
Insert, Delete, And Get Random In Constant TimeHash TableDesignMediumOnsite2 reports · last Sep 2026
Staircase Search In A Sorted MatrixMatrixBinary SearchMediumOnsite2 reports · last Sep 2026
Maximize Element FrequencyArraySortingMediumOnsite2 reports · last Sep 2026
Notification Deduplication WindowHash TableHeapMediumOnsite2 reports · last Sep 2026
Minimum in a Rotated Sorted ArrayArrayBinary SearchMediumPhone · Onsite2 reports · last Aug 2026
Inherited Role PermissionsHash TableTreeMediumOnsite2 reports · last Aug 2026
Data ReorganizationArrayBinary SearchHardOA2 reports · last Jul 2026
Cheapest Flights Within K StopsArrayGraphMediumOnsite2 reports · last Jun 2026
Word LadderStringHash TableHardPhone · Onsite2 reports · last Jun 2026
Final Position from Direction CommandsStringSimulationEasyPhone · Onsite2 reports · last Apr 2026
Longest Substring Without Repeating CharactersStringSliding WindowMediumPhone · Onsite2 reports · last Feb 2026
Bitwise XOR SubsequencesArrayHash TableMediumOA2 reports · last Mar 2025
House Robber IIITreeDepth-First SearchMediumPhone1 report · last Nov 2026
Knight Probability in ChessboardDynamic ProgrammingMathMediumOnsite1 report · last Nov 2026
Check a Complete Binary TreeTreeBreadth-First SearchMediumPhone1 report · last Oct 2026
Minimum Meeting Rooms Without a Sweep LineArrayHeapMediumOnsite1 report · last Oct 2026
Count Redundant File BackupsHash TableSortingMediumOA1 report · last Oct 2026
Is a Power of TenMathEasyPhone1 report · last Oct 2026
Minimum Traveling Salesperson TourDynamic ProgrammingBit ManipulationMediumPhone1 report · last Oct 2026
Square Root with Newton IterationMathBinary SearchMediumPhone1 report · last Oct 2026
Dijkstra Shortest Paths in a Weighted Undirected GraphGraphShortest PathMediumPhone1 report · last Sep 2026
Merge Overlapping IntervalsArraySortingMediumOA1 report · last Sep 2026
Subset Sum to TargetArrayDynamic ProgrammingMediumPhone1 report · last Sep 2026
The MazeMatrixDepth-First SearchMediumOnsite1 report · last Sep 2026
Microservice Deployment OrderGraphTopological SortMediumOnsite1 report · last Aug 2026
Binary Tree Maximum Path SumTreeDepth-First SearchHardOnsite1 report · last Aug 2026
Insert into a Min-HeapArrayHeapEasyOnsite1 report · last Aug 2026
Validate Binary Search TreeTreeDepth-First SearchMediumOnsite1 report · last Aug 2026
Alternating Parity PermutationsArrayBacktrackingMediumOA1 report · last Jul 2026
Binary Tree Nodes at Distance KTreeBreadth-First SearchMediumOnsite1 report · last Jun 2026
Cache Access StatisticsDesignHash TableMediumOnsite1 report · last Jun 2026
Lowest Common Ancestor of a Binary TreeTreeDepth-First SearchMediumOnsite1 report · last Jun 2026
ClayWorkspace Resource TreeDesignTreeHardPhone1 report · last Jun 2026
Find the Winner of an Array GameArraySimulationMediumOA1 report · last Jun 2026
Fraction to Recurring DecimalHash TableMathMediumOnsite1 report · last Jun 2026
H-Index IIArrayBinary SearchMediumOnsite1 report · last Jun 2026
Median of Two Sorted ArraysArrayBinary SearchHardPhone1 report · last Jun 2026
Minimum Number of Taps to Water a GardenArrayGreedyHardOA1 report · last Jun 2026
Reaching PointsMathHardOA1 report · last Jun 2026
Shortest Subarray with Sum at Least KArrayQueueHardPhone1 report · last Jun 2026
String Deque with Constant-Time OperationsDesignLinked ListMediumPhone1 report · last Jun 2026
Valid Binary PrefixStringGreedyMediumOA1 report · last May 2026
Last Candidate StandingMathSimulationMediumPhone1 report · last May 2026
Maximum-Value Grid PathArrayDynamic ProgrammingMediumPhone1 report · last May 2026
Search in a Rotated Sorted ArrayArrayBinary SearchMediumPhone1 report · last May 2026
Minimum Window SubstringStringHash TableHardOnsite1 report · last Apr 2026
Ordered Odd-Even Thread OutputConcurrencySimulationMediumOnsite1 report · last Apr 2026
Car Pooling Capacity CheckArraySortingMediumOnsite1 report · last Apr 2026
Design Hash MapHash TableDesignEasyOA1 report · last Mar 2026
Hospital Triage PriorityArraySortingEasyPhone1 report · last Feb 2026
Transaction Authorizer with Velocity RulesDesignHash TableHardOnsite1 report · last Feb 2026
Longest Substring with At Most K Distinct CharactersStringHash TableMediumOnsite1 report · last Feb 2026
Single Element in a Sorted ArrayArrayBinary SearchMediumOnsite1 report · last Feb 2026
Single Number with TriplicatesArrayBit ManipulationMediumOnsite1 report · last Feb 2026
Evaluate a Blackjack HandArrayGreedyEasyOnsite1 report · last Feb 2026
Max Area of IslandArrayMatrixMediumOnsite1 report · last Feb 2026
Group AnagramsStringArrayMediumOnsite1 report · last Feb 2026
LFU CacheDesignHash TableHardPhone1 report · last Jan 2026
Squares of a Sorted ArrayArraySortingEasyPhone1 report · last Jan 2026
Minimum Path SumArrayDynamic ProgrammingMediumPhone1 report · last Jan 2026
Largest Tree Size in a ForestGraphHash TableMediumPhone1 report · last Jan 2026
Lock CodeMathGreedyHardOA1 report · last Sep 2025
Encode or Decode MessageStringSimulationEasyOA1 report · last May 2025
Find the Damaged ToyMathSimulationEasyOA1 report · last May 2025
Effective ManagerArrayGreedyMediumOA1 report · last Mar 2025
Find Last KidMathSimulationEasyOA1 report · last Feb 2025
Find Number of Different Words That Can Be FormedDynamic ProgrammingStringMediumOA1 report · last Feb 2025
Process SchedulerIntervalsSortingMediumOA1 report · last Feb 2025
Better CompressionStringHash TableEasyOA1 report · last Nov 2024
Do They Belong?GeometryMathMediumOA1 report · last Nov 2024
Backspace String CompareStringStackEasyOA1 report · last Oct 2024
EncircularSimulationMathMediumOA1 report · last Oct 2024
Chairs RequirementSimulationStringEasyOA1 report · last Sep 2024
Longest SubarrayArraySliding WindowEasyOA1 report · last Sep 2024
Minimum MovesMatrixBreadth-First SearchMediumOA1 report · last Sep 2024
Alphanumeric CombinationsDynamic ProgrammingStringMediumOA1 report · last Aug 2024
Encryption ValidityMathArrayEasyOA1 report · last May 2024
Find Niceness 🌺Dynamic ProgrammingGreedyHardOA1 report · last Mar 2024
Minimum Start ValueArrayPrefix SumEasyOA1 report · last Feb 2024
Autocorrect PrototypeStringHash TableEasyOA1 report · last Jan 2024
Longest SubarraySliding WindowArrayEasyOA1 report · last Jan 2024
Plus Mult ArrayArraySimulationEasyOA1 report · last Jan 2024
Preprocess DatesStringParsingEasyOA1 report · last Jan 2024
Product of the Maximum and Minimum in a DatasetHeapDesignEasyOA1 report · last Jan 2024
Project EstimatesArrayHash TableEasyOA1 report · last Jan 2024
Stock AnalysisHash TableSimulationEasyOA1 report · last Jan 2024
Decoding StringStringParsingEasyOA1 report · last Aug 2023
Is PossibleMathRecursionMediumOA1 report · last Aug 2023

At a glance

Goldman Sachs interview process

FastPrep has 103 Goldman Sachs coding interview questions: 43 questions from the online assessment (OA), 31 questions from phone screens and 39 questions from onsite rounds. A question can be reported in more than one stage. Most are medium (59 medium, 30 easy and 14 hard). The most common topics are Array, Hash Table, String, Dynamic Programming and Simulation. The latest report is from Nov 2026.

  • Online Assessment

    43 questions · 20 easy, 18 medium and 5 hard

    Topics: Array, String and Math

    Latest report: Nov 2026

  • Phone Screen

    31 questions · 18 medium, 8 easy and 5 hard

    Topics: Array, Hash Table and Dynamic Programming

    Latest report: Nov 2026

  • Onsite

    39 questions · 28 medium, 6 easy and 5 hard

    Topics: Array, Hash Table and Simulation

    Latest report: Nov 2026

By stage and level

Goldman Sachs questions by stage and level

01 · Preparation plan

Move from data manipulation to reliable event handling.

This is an engineering preparation page, not an investment-banking interview guide. The public catalog supports a useful progression from a bounded optimization problem to dependency ordering and duplicate events, with design and project exercises available for a broader engineering discussion. This is a suggested practice order, not Goldman Sachs's interview process. Your invitation and recruiter come first.

  1. 01

    Derive the cost of an optimization

    Use element-frequency maximization to connect sorting, a budget, and a moving window. Explain why the window remains feasible when its left boundary changes.

    • Write the cost equation before moving either pointer.
    • Test repeated values and a zero operation budget.
    • Use an integer type that can hold cumulative costs.
    Practice: Maximize Element Frequency
  2. 02

    Order work without hiding cycles

    The deployment-order problem is a way to practice dependency modeling rather than memorize an ordering algorithm. Separate valid alternatives from an impossible dependency graph.

    • Define an edge as a prerequisite relationship.
    • Specify deterministic ordering when several tasks are ready.
    • Report a cycle instead of returning a partial success.
    Practice: Microservice Deployment Order
  3. 03

    Deduplicate within a precise window

    Use notification deduplication to reason about time, identity, and expiration. Then compare the implementation with a notification or order-processing design exercise from the public catalog.

    • Define the identity that makes two notifications equivalent.
    • Check timestamps immediately before and at expiration.
    • Discuss memory growth and safe removal of old state.
    Practice: Notification Deduplication Window

02 · Design and project questions

16 Goldman Sachs design and project questions

Beyond coding questions, FastPrep has 10 system design, 3 low-level design and 3 project coding questions tagged Goldman Sachs.

Project codingLast reported Nov 2026

Repair recurring payments in the Wallet backend

Identify and fix bugs affecting recurring-payment creation, scheduling, and processing in the Wallet backend.

Practice
System designLast reported Nov 2026

Design a Following News Feed Service

Design a scalable reverse-chronological feed for posts from authors a user currently follows.

Practice
System designLast reported Nov 2026

Design an Event-Driven Notification System

Design a reliable multi-channel notification platform for a high-cardinality internal producer fleet, with durable event handoff, fair admission, provider isolation, and recoverable poison messages.

Practice
Project codingLast reported Nov 2026

Repair the Held-Ticket Confirmation Lifecycle

Repair held-ticket confirmation so the corresponding method validates ownership, status, and expiration, updates section inventory, clears the hold, and checks whether every section is full.

Practice
System designLast reported Nov 2026

Design a URL Shortening Service

Design a deliberately small URL-shortening core, then evolve it into a highly available service whose fixed logical shards can move safely as physical storage capacity grows.

Practice
System designLast reported Oct 2026

Design Ride-Hailing Dispatch and Trip Lifecycle

Design the data model and regional services that match riders with nearby drivers while preserving a single active assignment.

Practice
Project codingLast reported Oct 2026

Repair Event Pre-Save Validation

Complete the Event model methods so validation applies before saving and checks the event's status transitions and dates.

Practice
System designLast reported Oct 2026

Design an Analytical Data Dashboard

Design a trustworthy dashboard platform that derives versioned metrics from event data and serves fast, reproducible slices.

Practice
System designLast reported Oct 2026

Design a Brokerage Order Processing System

Design an order-processing platform that safely accepts, routes, tracks, and reconciles retail brokerage orders.

Practice
Low-level designLast reported Oct 2026

Design a Multi-Floor Parking Lot

Model compatible parking for bikes, cars and five-spot buses, with atomic ticketed allocation and a nearest-entrance extension.

Practice
Low-level designLast reported Sep 2026

Design a Brokerage Order Processing Domain

Model a stock-broker order lifecycle with retry-safe client commands, recoverable venue interaction, execution reports, cancellation, and extensible policies.

Practice
Low-level designLast reported Sep 2026

Design an In-Memory Job Scheduler

Model a thread-safe scheduler for delayed and recurring jobs with cancellation, rescheduling, and controlled execution.

Practice
System designLast reported Sep 2026

Design a Pastebin Text Sharing Service

Let a user create a text paste and later fetch it by a generated short ID until it expires.

Practice
System designLast reported Aug 2026

Design a Course Registration Platform

Design a term-based course catalog and registration service that preserves enrollment rules and section capacity during opening-time bursts.

Practice
System designLast reported Aug 2026

Design a Live-Stream Chat System

Design low-latency chat for live broadcasts with hot-channel fanout, reconnect recovery, and moderation.

Practice
System designLast reported Jul 2026

Design a Financial Portfolio Dashboard

Design a trustworthy dashboard that normalizes balances and holdings from external providers and publishes fresh, reproducible portfolio metrics.

Practice

03 · About these questions

Where these Goldman Sachs questions come from

Each question on this page is tagged Goldman Sachs in FastPrep's problem bank. The report count and month show how often and how recently it was reported from Goldman Sachs interviews.

Past reports help you choose what to practice first. They can't tell you which questions, format or platform your own interview will use.

  • Only questions tagged Goldman Sachs appear on this page.
  • Each coding question shows its stage and last report date when known.
  • These are not official, private or leaked Goldman Sachs questions.

04 · FAQ

Goldman Sachs interview questions: FAQ

For hiring news and timelines, see the Goldman Sachs hiring insights page.

01What are the stages of the Goldman Sachs interview?

The 103 Goldman Sachs coding questions on FastPrep come from the online assessment (43 questions), phone screens (31 questions) and onsite rounds (39 questions). Some questions were reported in more than one stage. Stages differ by role, level and date, so check your invitation for your own process.

02What does the Goldman Sachs OA look like?

43 of the 103 Goldman Sachs coding questions on FastPrep come from the online assessment. By difficulty: 20 easy, 18 medium and 5 hard. Common OA topics: Array, String and Math. The latest OA report is from Nov 2026.

03How hard is the Goldman Sachs interview?

Most Goldman Sachs coding questions on FastPrep are medium. By difficulty, the 103 rated questions are 59 medium, 30 easy and 14 hard.

04What topics come up in Goldman Sachs coding interviews?

Across 103 Goldman Sachs coding questions, the most common topics are Array (41 questions), Hash Table (26 questions), String (22 questions), Dynamic Programming (18 questions) and Simulation (18 questions).

05What are the most asked Goldman Sachs interview questions?

The most reported questions are “Root of the Largest Tree” (7 reports), “Best Average Student Score” (6 reports) and “Palindrome Counter” (5 reports).

06Does this cover Goldman Sachs finance or banking interviews?

The page focuses on software-engineering practice. Company-tagged coding and design assets do not establish accounting, valuation, behavioral, or investment-banking interview coverage. Even financial-looking examples should be approached as programming contracts unless your role-specific guidance asks for additional domain knowledge.

07Is FastPrep affiliated with Goldman Sachs?

No. FastPrep is an independent interview prep site and is not affiliated with Goldman Sachs. These are practice questions from FastPrep's problem bank, not official, private or leaked Goldman Sachs questions.

08How do you know which stage a Goldman Sachs question is from?

Each question's stage comes from the reports behind it. A question can be reported from more than one stage, and the process can change by role, level, location and year, so treat the stage as a guide, not a promise.

09Which Goldman Sachs interview stage should I practice first?

The stage named in your invitation or recruiter message. If you don't know the stage yet, start with the stage that has the most questions, then practice explaining and testing your code out loud.

10Can this page tell me exactly what my Goldman Sachs interview will ask?

No. Report counts, stages and dates show what came up before and help you choose what to practice first. They can't predict the questions, order, timing or platform of your own interview.

Next step

Pick a question. Solve it end to end.

Start with the stage named in your invitation. Past reports show what came up before, not what you will be asked.

Back to the question list