Goldman Sachs Interview Questions

Goldman Sachs Interview Questions

Practice 16 real interview questions from Goldman Sachs. Covers Coding & Algorithms, Behavioral & Leadership, Product / Decision Making, Machine Learning. For roles including Software Engineer, Product Manager, Machine Learning Engineer.

16 Questions 1 Company06.08.2026
Showing 16 results
Role
Goldman Sachs logo
Goldman Sachs
Medium
Software Engineer

Count segments and optimize 3-server assignment

There are two independent programming tasks. --- Problem 1: Transaction Segments You are given: - An integer n, the length of an array. - An integer k...

Coding & Algorithms
19
0
262 people solved
Dec 7, 2025
Goldman Sachs logo
Goldman Sachs
Hard
Machine Learning Engineer

Evaluate TPR/FPR, sigmoid, and activations

You have a 70-minute assessment with several ML-fundamentals multiple-choice questions. Answer the following (show calculations where applicable). 1) ...

Machine Learning
3
0
65 people solved
Oct 10, 2025
Goldman Sachs logo
Goldman Sachs
Medium
Software Engineer

Describe a proud project and handling credit conflict

Answer the following behavioral questions: 1. Project you’re proud of: Describe a project you’re proud of. Explain what you built, your role, the impa...

Behavioral & Leadership
7
0
74 people solved
Dec 15, 2025
Goldman Sachs logo
Goldman Sachs
Hard
Machine Learning Engineer

Complete decision tree and gradient descent functions

You are given partially implemented code and must complete key functions. Implement the missing parts with correct logic and reasonable efficiency. Ta...

Coding & Algorithms
13
0
98 people solved
Oct 10, 2025
Goldman Sachs logo
Goldman Sachs
Medium
Software EngineerSenior+ Locked

Design a Workspace Resource Manager

This question tests a candidate's ability to design and implement a tree-structured data model with efficient CRUD operations in memory. It evaluates ...

Coding & Algorithms
1
0
9 people solved
Jun 8, 2026
Goldman Sachs logo
Goldman Sachs
Medium
Software Engineer

How would you handle conflict and data pressure?

Behavioral questions (answer both) 1) Leading amid collaborator disagreement You are newly assigned as the team lead by your manager. One collaborator...

Behavioral & Leadership
6
0
60 people solved
Dec 9, 2025
Goldman Sachs logo
Goldman Sachs
Medium
Product Manager

Lottery Coupon Winners Calculation

Lottery Coupons: Most Frequent Digit-Sum Values Problem You are running a lottery with consecutively numbered coupons from $1$ to $n$ (inclusive). A c...

Product / Decision Making
16
0
210 people solved
Jul 4, 2025
Goldman Sachs logo
Goldman Sachs
Medium
Software Engineer

Solve string and hashmap interview tasks

Coding questions (solve both) 1) First non-repeating character Given a string s, return the first character that appears exactly once in the string. -...

Coding & Algorithms
18
0
130 people solved
Dec 9, 2025
Goldman Sachs logo
Goldman Sachs
Medium
Software Engineer

Find first non-repeating character index

You are given two separate coding tasks. Task 1: First Unique Character Given a string s (lowercase/ASCII letters), return the index of the first char...

Coding & Algorithms
5
0
76 people solved
Dec 15, 2025
Goldman Sachs logo
Goldman Sachs
Medium
Product Manager

Word Compression Algorithm

Algorithm Prompt: String Compression and Decompression with Run-Length Encoding Design algorithms to compress and decompress a string using run-length...

Product / Decision Making
9
0
116 people solved
Jul 4, 2025
Goldman Sachs logo
Goldman Sachs
Medium
Software Engineer

Implement an Integer Hash Map

Design a data structure MyHashMap that stores integer keys and integer values without using any built-in hash table library. Implement the following o...

Coding & Algorithms
5
0
63 people solved
Feb 25, 2026
Goldman Sachs logo
Goldman Sachs
Medium
Product Manager

Leading a Distributed Cross-Divisional Team

Behavioral Prompt: Leading a Distributed Cross-Divisional Team You are a Product Manager leading a cross-functional team distributed across multiple d...

Behavioral & Leadership
9
0
42 people solved
Jul 4, 2025
Goldman Sachs logo
Goldman Sachs
Easy
Software Engineer

Implement a String Deque

Implement a double-ended queue (Deque) that stores strings. Your implementation must support the following operations: - addFirst(data): Insert data a...

Coding & Algorithms
0
0
7 people solved
Jan 29, 2026
Goldman Sachs logo
Goldman Sachs
Medium
Product Manager

Behavioral Decision-Making & Growth

Behavioral PM Prompt: Decision-Making and Growth in a Regulated Domain You are interviewing for a Product Manager role in a regulated, data-heavy doma...

Behavioral & Leadership
5
0
37 people solved
Jul 4, 2025
Goldman Sachs logo
Goldman Sachs
Medium
Product Manager

How to answer HireVue behavioral prompts

You are preparing for a Product Manager behavioral interview. Build structured, interview-ready answers for this prompt cluster from the original inte...

Behavioral & Leadership
5
0
55 people solved
Dec 15, 2023
Goldman Sachs logo
Goldman Sachs
Medium
Software Engineer Locked

Solve string and hashmap coding tasks

This multi-part prompt evaluates string manipulation, hash map usage for grouping and lookup, and simulation of sequential commands, along with robust...

Coding & Algorithms
8
0
97 people solved
Feb 11, 2026
Goldman Sachs Interview Questions (Updated 2026) | PracHub