Skip to main content
Back to Companies
Goldman Sachs logo

Goldman Sachs Interview Questions (261)

Practice real interview problems from Goldman Sachs

#1247

Minimum Swaps to Make Strings Equal

Medium✓ Solution📹 Video
Goldman Sachs+3
#1396

Design Underground System

Medium✓ Solution📹 Video
Amazon+6
#1427Premium

Perform String Shifts

Easy✓ Solution📹 Video
Goldman Sachs
#1446

Consecutive Characters

Easy✓ Solution📹 Video
Amazon+3
#1472

Design Browser History

Medium✓ Solution📹 Video
Amazon+12
#1478

Allocate Mailboxes

Hard✓ Solution📹 Video
Amazon+3
#1522Premium

Diameter of N-Ary Tree

Medium✓ Solution📹 Video
Goldman Sachs+2
#1535

Find the Winner of an Array Game

Medium✓ Solution📹 Video
Directi+3
#1665

Minimum Initial Energy to Finish Tasks

Hard✓ Solution📹 Video
Akuna Capital+4
#1823

Find the Winner of the Circular Game

Medium✓ Solution📹 Video
Accenture+11
#2043

Simple Bank System

Medium✓ Solution📹 Video
Airbnb+19
#2087

Minimum Cost Homecoming of a Robot in a Grid

Medium✓ Solution📹 Video
Goldman Sachs+2
#2191

Sort the Jumbled Numbers

Medium✓ Solution📹 Video
Amazon+2
#2420

Find All Good Indices

Medium✓ Solution📹 Video
Goldman Sachs
#2446

Determine if Two Events Have Conflict

Easy✓ Solution📹 Video
Goldman Sachs+1
Page 5 of 6

About Goldman Sachs Coding Interviews

Goldman Sachs is known for building highly reliable financial systems that process enormous volumes of transactions every day. Because of this, their engineering interviews focus heavily on strong fundamentals in data structures, algorithms, and problem solving. Candidates are expected to write clean, efficient code and clearly explain their reasoning while solving problems.

The typical Goldman Sachs coding interview evaluates how well you understand core DSA concepts and how you apply them under time pressure. Interviewers often prefer practical algorithmic thinking over memorized solutions. Many problems resemble real production challenges such as handling large datasets, optimizing performance, and designing scalable logic.

Across real interview experiences, Goldman Sachs frequently asks problems involving:

  • Arrays and Hash Maps for fast lookups and data processing
  • Two pointers and sliding window for optimized array and string operations
  • Binary search for performance-sensitive queries
  • Trees and graphs for hierarchical and relationship-based data
  • Dynamic programming for optimization problems

Difficulty is typically distributed across easy, medium, and challenging problems, with a strong emphasis on medium-level questions that test both coding ability and algorithmic intuition.

FleetCode helps you prepare efficiently with a curated set of 270 Goldman Sachs interview questions collected from real candidate experiences. Each problem is categorized by difficulty and topic, and includes solutions in Python, Java, and C++. Instead of guessing what to practice, you can focus directly on the patterns Goldman Sachs interviewers repeatedly test.

If you're targeting a role at Goldman Sachs, practicing these company-specific problems will significantly increase your confidence and readiness for the coding rounds.

Interview Tips for Goldman Sachs

Preparing for a Goldman Sachs coding interview requires a solid understanding of core data structures and the ability to communicate your thought process clearly. While the exact process may vary slightly by role and location, most candidates go through multiple technical rounds focused on problem solving.

Typical Goldman Sachs interview format:

  • Online Assessment (OA): Usually 2–3 coding questions to solve within 60–90 minutes. These typically focus on arrays, strings, and hash maps.
  • Technical Phone Screen: One or two algorithmic problems solved in a shared editor while explaining your approach.
  • Onsite or Virtual Onsite: 3–4 rounds including coding interviews, discussion of past projects, and sometimes a system design round for experienced candidates.

Most common DSA topics asked at Goldman Sachs:

  • Arrays, strings, and hash tables
  • Two pointers and sliding window techniques
  • Binary search and sorting-based problems
  • Trees and graph traversal (BFS / DFS)
  • Dynamic programming and recursion

Interviewers also pay close attention to code clarity and edge case handling. Even if you find the correct algorithm, failing to consider boundary conditions or writing messy code can impact your evaluation.

Common mistakes candidates make:

  • Jumping into coding without discussing the approach
  • Ignoring time and space complexity analysis
  • Not testing the solution with sample edge cases
  • Overcomplicating problems that have simple hash map or pointer solutions

Preparation strategy:

  • Start with arrays, strings, and hash map patterns.
  • Practice two-pointer and sliding window problems extensively.
  • Move to trees, graphs, and dynamic programming.
  • Simulate interviews by solving problems within 30–40 minutes.

Most candidates preparing seriously for Goldman Sachs spend 6–10 weeks practicing focused DSA problems. Working through a curated list of the most frequently asked questions—like the 270 Goldman Sachs problems on FleetCode—helps you focus on patterns that actually appear in interviews.