Goldman Sachs Coding & Algorithms Interview Questions

Practice the exact questions companies are asking right now.

8 Questions 1 Company06.08.2026
Showing 8 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
25
2
342 people solved
Dec 7, 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
7
0
83 people solved
Feb 25, 2026
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
14 people solved
Jun 8, 2026
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
9
0
106 people solved
Feb 11, 2026
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
19
0
135 people solved
Dec 9, 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
104 people solved
Oct 10, 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
10 people solved
Jan 29, 2026
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
79 people solved
Dec 15, 2025

Explore more Goldman Sachs Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

Coding & Algorithms questions at other companies
Browse all
Goldman Sachs Coding & Algorithms Questions (Updated 2026) | PracHub