Goldman Sachs Coding Interview Questions

We track 256 coding questions asked at Goldman Sachs, tagged with the algorithms and concepts they test. The most common: Array, String, Hash Table, Dynamic Programming, Sorting.

Browse all 256 Goldman Sachs questions →

Concept mix

Each question's weight is split evenly across its concepts, so the shares sum to 100%.

How many questions involve each concept

Share of all 256 tracked Goldman Sachs questions that touch each concept. Questions usually involve several, so these overlap.

Where Goldman Sachs differs from the average company

Concept weight at Goldman Sachs relative to the average across all companies we track. Green means Goldman Sachs leans on it harder than most.

Goldman Sachs specialties

Concepts that show up at Goldman Sachs but are rarely asked elsewhere. They are easy to get blindsided by.

Difficulty mix

Level split of the 256 tracked Goldman Sachs questions.

  • Junior18% (47)
  • Mid/Senior64% (163)
  • Staff18% (46)

Every concept in Goldman Sachs interviews

ConceptQuestions% of questionsShare of mix
Array15058.6%20.2%
String6625.8%9.9%
Hash Table5621.9%6.3%
Dynamic Programming5521.5%8.0%
Sorting3814.8%4.0%
Math3312.9%4.8%
Two Pointers3112.1%4.2%
Binary Search2710.5%3.4%
Matrix2610.2%3.1%
Stack249.4%2.9%
Greedy239.0%2.8%
Breadth-First Search218.2%2.3%
Depth-First Search187.0%1.7%
Heap (Priority Queue)187.0%1.4%
Simulation187.0%2.3%
Linked List176.6%2.5%
Design145.5%1.3%
Prefix Sum145.5%1.8%
Recursion145.5%2.2%
Backtracking135.1%1.8%
Binary Tree135.1%1.3%
Tree135.1%1.3%
Sliding Window124.7%1.4%
Divide and Conquer103.9%0.9%
Bit Manipulation93.5%1.0%
Counting93.5%0.7%
Monotonic Stack93.5%0.9%
Queue83.1%0.7%
Trie52.0%0.4%
Union-Find41.6%0.4%
Binary Indexed Tree31.2%0.2%
Binary Search Tree31.2%0.2%
Data Stream31.2%0.2%
Doubly-Linked List31.2%0.3%
Enumeration31.2%0.4%
Graph Theory31.2%0.3%
Hash Function31.2%0.2%
Monotonic Queue31.2%0.2%
Ordered Set31.2%0.2%
Quickselect31.2%0.2%
Bucket Sort20.8%0.1%
Memoization20.8%0.2%
Segment Tree20.8%0.1%
Combinatorics10.4%0.1%
Concurrency10.4%0.4%
Eulerian Circuit10.4%0.1%
Geometry10.4%0.1%
Sweep Line10.4%0.1%
Merge Sort10.4%0.1%
Number Theory10.4%0.1%
Rolling Hash10.4%0.1%
Shortest Path10.4%0.1%
Suffix Array10.4%0.1%
Topological Sort10.4%0.1%

Practice a Goldman Sachs interview

Take a realistic AI-led mock interview with questions Goldman Sachs actually asks, with live voice and real feedback.

Start a mock interview

Your first interview is free · no credit card required