717 questions · from 124 interviews · 39 asked more than once

Goldman Sachs interview questions

Every question candidates reported from their Goldman Sachs interviews, most frequently asked first. Each links to the write-up it came from, so you can see the round and how it went.

Goldman Sachs coding and DSA questions

  1. 01

    Trapping Rain Water

    Given an array of non‑negative integers representing elevation map where the width of each bar is 1, compute how much water it can trap after raining.

    Hard · Asked 10 times · From Goldman Sachs OA + Interview Experience

  2. 02

    Decode Ways

    A message containing letters from A-Z can be encoded into numbers using the following mapping: 'A' - "1" 'B' - "2" ... 'Z' - "26" To decode an encoded message, all digits must be mapped back into letters using the reverse of the mapping above (and sometimes…

    Medium · Asked 7 times · From Goldman Sachs- Analyst Software Engineering - Interview Experience

  3. 03

    Group Anagrams

    Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.…

    Medium · Asked 7 times · From Interview Experience at Goldman Sachs | Analyst | Bengaluru (India)

  4. 04

    Number of Islands

    Please refer to the LeetCode link for the full problem description.

    Medium · Asked 5 times · From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  5. 05

    First Unique Character in a String

    Find the first non-repeating character in a string and return its index. If no such character exists, return -1.

    Easy · Asked 5 times · From Goldman Sachs Interview Experience | Associate Role | Transaction Banking | Sep 2025 | Bangalore

  6. 06

    LRU Cache

    Problem statement can be found at the linked LeetCode page.

    Medium · Asked 4 times · From Goldman Sachs | Associate

  7. 07

    Fraction to Recurring Decimal

    Problem statement can be found at the linked LeetCode page.

    Medium · Asked 4 times · From Goldman Sachs | Associate

  8. 08

    Search in Rotated Sorted Array

    There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k such that the resulting array is [nums[k], nums[k+1], ..., nums[n-1], nums[0],…

    Medium · Asked 4 times · From Goldman Sachs | Interview Experience | Ghosted

  9. 09

    Minimum Window Substring

    Given a source string S and a target string T , find the smallest substring of S that contains all characters of T . The solution typically uses a hashmap for character counts and a sliding window technique.

    Hard · Asked 4 times · From Goldman Sachs - Java Associate Interview Experience

  10. 10

    Find Minimum in Rotated Sorted Array

    Given a rotated sorted array of distinct integers, find the minimum element. Example: Input: nums = [4,5,6,7,0,1,2] Output: 0

    Medium · Asked 3 times · From Goldman sachs coderpad round for Associate

  11. 11

    Median of Two Sorted Arrays

    Problem statement can be found at the linked LeetCode page.

    Hard · Asked 3 times · From Goldman Sachs | Associate

  12. 12

    Count Number of Teams

    Coding Wars - LC 1395. Count Number of Teams

    Medium · Asked 3 times · From Goldman Sachs | Associate | Interview Experience

  13. 13

    First Missing Positive

    Problem statement from LeetCode link.

    Hard · Asked 3 times · From Goldman Sachs Analyst Interview experience

  14. 14

    Best Time to Buy and Sell Stock

    You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock. Return the maximum profit you…

    Easy · Asked 3 times · From Interview Experience at Goldman Sachs | Associate

  15. 15

    Minimum Path Sum

    Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path. You can only move either down or right at any point in time.

    Medium · Asked 3 times · From Goldman Sachs | Software Engineer/Analyst | Hyderabad | 2021 | Offer Accepted

  16. 16

    Word Ladder

    Word Ladder problem (specific description not provided in the post).

    Hard · Asked 2 times · From Goldman Sachs Associate Interview Experience

  17. 17

    H-Index II

    Problem statement can be found at the linked LeetCode page.

    Medium · Asked 2 times · From Goldman Sachs | Associate

  18. 18

    LRU Cache Implementation

    Implement an LRU (Least Recently Used) cache with get and put operations.

    Medium · Asked 2 times · From Interview: VP Software Engineer at Goldman Sachs (Dallas, TX)

  19. 19

    Longest Substring Without Repeating Characters

    Please refer to the LeetCode link for the full problem description.

    Medium · Asked 2 times · From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  20. 20

    Single Element in a Sorted Array

    Please refer to the LeetCode link for the full problem description. Follow up: How will you solve this question in same time complexity if every element other than the single element appeared thrice?

    Medium · Asked 2 times · From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  21. 21

    Highest Average Score

    You are given a list of students and their scores, where a student may appear multiple times.Your task is to find the highest average score among all students.

    Asked 2 times · From Goldmansachs CoderPad

  22. 22

    Container With Most Water

    Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which, together with x-axis forms a container, such…

    Medium · Asked 2 times · From Goldman Sachs Interview Experience | Analyst | Bangalore

  23. 23

    Longest Increasing Subsequence

    Find the length of the longest increasing subsequence in a given array.

    Medium · Asked 2 times · From Goldman Sachs Virtual Panel Interview | August 2025 | Engineering Associate | USA

  24. 24

    Number of Islands (variation)

    A slight variation of the Number of Islands problem.

    Medium · Asked 2 times · From Interview experience - Goldman Sachs - Analyst

  25. 25

    First Non-Repeating Character in a String

    Find the first non-repeating character in a given string.

    Easy · Asked 2 times · From Goldman Sachs SuperDay Interview (Associate)

376 more in the Goldman Sachs write-ups.

Goldman Sachs system design questions

  1. 01

    Design LRU Cache

    Design a Least Recently Used (LRU) cache.

    Medium · Asked 4 times · From Goldman Sachs SDE Interview Experience

  2. 02

    Design Twitter

    The task was to design Twitter. The first half focused on Low-Level Design (LLD), including defining classes and models for Users , Tweets , and Follows . The second half covered High-Level Design (HLD) concerning scalability, specifically how to efficiently…

    Hard · Asked 2 times · From Goldman Sachs Interview Experience - Associate | August 2025 | Bangalore

  3. 03

    Design Splitwise

    Design a system like Splitwise, focusing on its core functionalities. This includes discussing application requirements, defining classes (e.g., User, Expense, Group, Transaction), and establishing relationships between these classes. Consider how to handle…

    Medium · Asked 2 times · From Goldman Sachs- Analyst Software Engineering - Interview Experience

  4. 04

    RAG Architecture Explanation

    Describe the Retrieval‑Augmented Generation (RAG) architecture, its components, and how it is used in a project.

    From Goldman Sachs OA + Interview Experience

  5. 05

    In‑Memory Deduplication Engine for Notification Service

    Design an in‑memory deduplication engine that filters duplicate notification payloads. Requirements: • Duplicate defined by identical notificationid (UUID) seen within the last 10 minutes. • Process ~10,000 notifications per second. • Operate on a single…

    From Goldmann Sachs | Associate | Interview

  6. 06

    Design Notification System

    Design a notification system that supports sending email and SMS notifications. The system should handle multiple applications (10‑15), include a data model, choose an appropriate tech stack, define APIs, provide reporting capabilities, and be extensible for…

    From Goldman Sachs Interview Experience: Assosciate

  7. 07

    Live Chat System Design

    Design a live chat system for a streaming platform such as YouTube Live.

    From Goldman Sachs | VP | 6 Year Experience

  8. 08

    In-Memory Job Scheduler LLD

    Design a low-level design for an in-memory job scheduler that supports concurrency, and later extend it to a distributed system.

    From Goldman Sachs | VP | 6 Year Experience

  9. 09

    Design Ride Booking System (Uber‑like)

    Design a high‑level architecture for a ride‑booking platform similar to Uber, covering functional and non‑functional requirements, capacity estimation, component interactions (including Kafka, Redis, WebSockets), driver‑user matching, surge pricing, and…

    From Goldman Sachs Associate Interview Experience

  10. 10

    Design Instagram Functionality

    Design and implement a chosen functionality of Instagram in detail (e.g., feed generation, story upload, or likes system).

    From Interview: VP Software Engineer at Goldman Sachs (Dallas, TX)

  11. 11

    Course Booking System Design

    Design a system for booking courses, covering aspects such as user management, course catalog, enrollment, and payment processing.

    From Interview: VP Software Engineer at Goldman Sachs (Dallas, TX)

  12. 12
  13. 13

    MySQL vs. NoSQL Usage

    Discuss when to use MySQL and when to use NoSQL databases.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  14. 14

    Role of API Gateway

    Explain the role of an API Gateway.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  15. 15

    Debugging Production API Issues

    Describe your approach to checking for issues in an API running on a production environment.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  16. 16

    Monolithic vs. Microservices Architecture and Tradeoffs

    Explain the difference between monolithic and microservices architecture and discuss the tradeoffs of microservices.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  17. 17

    Microservice Definition - Business Logic Only

    If UI and Database parts are removed from a service, leaving only business logic, would it still be considered a microservice? Explain.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  18. 18

    API Gateway, Load Balancers, and Skipping Load Balancers

    Explain the roles of API Gateways and load balancers. Discuss whether load balancers can be skipped.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  19. 19

    Microservices Communication Methods

    Describe how microservices communicate (e.g., using REST APIs and messaging queues).

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  20. 20

    Parking Lot Design (Multiple Floors)

    I was asked to verbally solve the Parking Lot design question, specifically for multiple floors.

    From Goldman Sachs Superday + Additional DSA round

  21. 21

    High-Level Design for Twitter Homepage

    I was asked to do High-Level Design for Twitter, focusing only on tweets on the home page (global tweets + follower tweets). I was asked to draw a diagram, write down entities and their fields. They also asked questions about databases (difference between…

    From Goldman Sachs Superday + Additional DSA round

  22. 22

    Rate Limiter Design with Leaky Bucket

    Design a rate limiter. Discussed the Leaky Bucket algorithm in detail, including how to select appropriate leak rate and bucket size. I was then asked to write a code snippet implementing the Leaky Bucket algorithm.

    From GS Associate Interview Experience | YOE - 2.3 years

  23. 23

    LLD of Simplified Stock Market

    Verbal discussion focusing on the Low-Level Design (LLD) of an oversimplified stock market system, without any coding required.

    From GS Associate Interview Experience | YOE - 2.3 years

  24. 24

    HLD of Stock Market with Transactions

    Extend the Low-Level Design of the simplified stock market to a High-Level Design (HLD). This involved discussions about transactions and locking mechanisms within the database.

    From GS Associate Interview Experience | YOE - 2.3 years

  25. 25

    Design a Traffic Light System

    Design a Traffic Light System that dynamically adjusts wait times based on real-time traffic data, considering factors like sensor input, traffic flow prediction, and synchronization between intersections.

    From Goldman Sachs Interview Experience | Analyst | Bangalore

120 more in the Goldman Sachs write-ups.

Goldman Sachs behavioural and HR questions

  1. 01

    Why Goldman Sachs?

    Why do you want to work for Goldman Sachs?

    Asked 4 times · From Goldman Sachs | Analyst | Bengaluru | Selected

  2. 02

    Behavioral: Reacting to a colleague taking credit for your work

    Describe how you would respond if a colleague took credit for your work.

    From Goldman Sachs Associate Interview Experience

  3. 03

    Project Discussion

    A detailed discussion regarding my past projects and technical contributions highlighted in my resume.

    From GS Associate Interview Experience | YOE - 2.3 years

  4. 04

    Resume Grilling

    An in-depth review and questioning based on my resume and professional experience.

    From GS Associate Interview Experience | YOE - 2.3 years

  5. 05

    Handling Confidential Information Scenario

    Scenario: You overhear in a lift that a colleague, who was expecting a salary hike, is actually not going to get one. How would you handle this situation while maintaining professionalism and confidentiality?

    From Goldman Sachs Interview Experience | Analyst | Bangalore

  6. 06

    Agile Methodology Discussion

    Discussion revolved around Agile methodology, including its pros and cons, and strategies for handling sprint delays or impediments.

    From Goldman Sachs Interview Experience - Associate | August 2025 | Bangalore

  7. 07

    Leadership & Situational Questions

    Situational and leadership-focused questions were asked, such as how I would handle conflicts within a team and how I prioritize features against tight deadlines.

    From Goldman Sachs Interview Experience - Associate | August 2025 | Bangalore

  8. 08

    Discussion on Projects

    I was asked about my projects, requiring me to explain their core workings.

    From Goldman Sachs Summer Analyst Internship Interview 2025

  9. 09

    Resume Deep Dive

    I was thoroughly grilled on the details of my resume.

    From Goldman Sachs Summer Analyst Internship Interview 2025

  10. 10

    Tell me something not on your resume

    Tell me something that's not in your resume

    From [Offer] Goldman Sachs Summer Analyst 2026 – Full Interview Experience

  11. 11

    Describe a conflict in a team and its resolution

    Tell me about a time you faced conflict in a team. How did you resolve it?

    From [Offer] Goldman Sachs Summer Analyst 2026 – Full Interview Experience

  12. 12

    Why Goldman Sachs and why hire you?

    Why should we hire you? Why is Goldman Sachs important to you?

    From [Offer] Goldman Sachs Summer Analyst 2026 – Full Interview Experience

  13. 13

    Behavioral Questions: Why Switch Early, Credit for Work, Conflict Resolution

    Normal Behavioural Questions like Why switch So Early ? What would you do if someone took credit for your work ? How will you handle the confrontation if it gets physical ?

    From Goldman Sachs | Analyst (2YOE) | Interview Experience | Bangalore

  14. 14

    Behavioral: Why are you looking for a switch so early?

    Behavioral question: Why are you looking to switch jobs so early?

    From Interview experience - Goldman Sachs - Analyst

  15. 15

    Behavioral: Why Goldman Sachs?

    Behavioral question: Why are you interested in Goldman Sachs?

    From Interview experience - Goldman Sachs - Analyst

  16. 16

    Handling PII Data Breach (Email)

    What would you do if Personally Identifiable Information (PII) data is sent to your mail by mistake? What actions would you take?

    From GS interview experience

  17. 17

    Why do you want to switch?

    Behavioral question: "Why do you want to switch?"

    From Goldman Sachs | Analyst | Interview Experience | 1.5 YOE

  18. 18

    Previous Experience with Testing

    Describe the types of software testing you have performed in your previous professional experiences.

    Easy · From Goldman Sachs Analyst - USA - Super Day experience (Reject)

  19. 19

    SDLC Methodologies in Previous Experience

    Which Software Development Life Cycle (SDLC) methodologies have you followed in your previous professional experiences?

    Easy · From Goldman Sachs Analyst - USA - Super Day experience (Reject)

  20. 20

    Most Challenging Project

    Describe the most challenging project you've worked on and explain why it was challenging. This question involved many follow-up questions.

    Medium · From Goldman Sachs Analyst - USA - Super Day experience (Reject)

  21. 21

    Why Leave Current Company?

    Tell me why you are looking to leave your current company.

    From Goldman Sachs | Analyst | Bengaluru | Selected

  22. 22

    Handling Client Request for Competitor Information

    If an important client wants some information about other competitors, what would you do in this situation?

    From Goldman Sachs | Analyst | Bengaluru | Selected

  23. 23

    Handling Irrelevant Work from Remote Colleague

    If your colleague, working remotely, sends you completed work that is not relevant to the project, what would you do in this situation?

    From Goldman Sachs | Analyst | Bengaluru | Selected

  24. 24

    Handling Team Disagreement

    Tell me about a time when you've disagreed with your teammates but still moved forward with them. How did you deal with it? What did you learn from that experience?

    From Goldman Sachs - Coderpad round

  25. 25

    Dealing with Unrecognized Contributions

    What would you do when you've not received the credit you deserve despite having significant contributions to a project?

    From Goldman Sachs - Coderpad round

30 more in the Goldman Sachs write-ups.

Goldman Sachs other questions

  1. 01

    Singleton Class Implementation

    Implementation of a singleton class.

    Asked 2 times · From Goldman Sachs | Analyst | Bengaluru | Selected

  2. 02

    Implement caching for distributed systems

    If you want to implement caching for distributed systems, describe the architecture, components, and strategies you would use.

    From Goldman Sachs Associate Interview Experience

  3. 03

    Caching techniques: Write‑back, Write‑Through, Write‑Around

    Explain the three caching techniques (write‑back, write‑through, write‑around) in detail and when to prefer each of them.

    From Goldman Sachs Associate Interview Experience

  4. 04

    Implement LRU & LFU caching policies

    Describe how you would implement Least Recently Used (LRU) and Least Frequently Used (LFU) cache eviction policies, including data structures and algorithms.

    From Goldman Sachs Associate Interview Experience

  5. 05

    Print Numbers 1 to 100 Using Two Threads

    Create two threads where one thread prints even numbers and the other prints odd numbers. The combined output must print numbers from 1 to 100 in strict sequential order.

    From Goldman Sachs - Java Associate Interview Experience

  6. 06

    Prop Drilling in React

    Explain Prop Drilling in React.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  7. 07

    Implemented Design Patterns

    Discuss design patterns you have implemented.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  8. 08

    SOLID Principles

    Provide a detailed explanation of SOLID principles.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  9. 09

    Other Design Principles

    Discuss any design principles known other than SOLID.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  10. 10

    Customizing hashCode()

    Explain how to customize the hashCode() function.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  11. 11

    Java 8 New Features

    Discuss new features implemented in Java 8.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  12. 12

    React Hooks Usage

    Discuss React hooks you have used.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  13. 13

    Liskov Substitution Principle and SOLID Code Analysis

    Explain the 'L' (Liskov Substitution Principle) in SOLID principles. Provide code demonstrating its application and analyze which SOLID principles the code follows and which it doesn't, explaining in detail.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  14. 14

    React Building Blocks

    Describe the building blocks of React.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  15. 15

    React Entry Point and app.js Content

    Identify the entry point of React code (e.g., app.js) and explain its content.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  16. 16

    Functional vs. Class Components in React

    Explain the difference between functional and class components in React.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  17. 17

    useMemo hook

    Explain the useMemo hook in React.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  18. 18

    let, var, const in JavaScript

    Explain the difference between let, var, and const in JavaScript.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  19. 19

    Spring Security - JWT, OAuth

    Discuss Spring Security concepts including JWT and OAuth.

    From Goldman Sachs Interview Experience | 2.5 YOE | AWM/AM Tech | Hyderabad

  20. 20

    Java Code Snippet Debugging

    Given a code snippet written in Java, identify and explain the issues present within it.

    From GS Associate Interview Experience | YOE - 2.3 years

  21. 21

    HashMap Internals and Java Exceptions

    Explain the internal working mechanisms of a HashMap. Also, describe different types of exceptions in Java and when they occur.

    From GS Associate Interview Experience | YOE - 2.3 years

  22. 22

    Flatten 2D Array using Reduce

    Demonstrate how to flatten a 2D array using the reduce method in JavaScript.

    Easy · From Goldman Sachs | Associate | interview experience

  23. 23

    In-built Library Functions

    I was asked questions about various in-built library functions.

    From Goldman Sachs Summer Analyst Internship Interview 2025

  24. 24

    Encryption Techniques

    I was asked questions related to encryption techniques.

    From Goldman Sachs Summer Analyst Internship Interview 2025

  25. 25

    Computer Networks Concepts

    I was asked questions about Computer Networks.

    From Goldman Sachs Summer Analyst Internship Interview 2025

91 more in the Goldman Sachs write-ups.

Goldman Sachs interview questions FAQ

What questions are asked in Goldman Sachs interviews?

Candidates reported 717 distinct questions across 124 Goldman Sachs interviews. 401 coding and DSA questions, 145 system design questions, 55 behavioural and HR questions, 116 other questions.

Which Goldman Sachs interview questions are asked most often?

The most repeated are "Trapping Rain Water" (10 times), "Decode Ways" (7 times), "Group Anagrams" (7 times), "Number of Islands" (5 times), "First Unique Character in a String" (5 times).

How difficult are Goldman Sachs interview questions?

Of the questions candidates rated, 20% were easy, 59% medium and 22% hard.