Databricks vs Goldman Sachs Interview Questions

Databricks lists 31 LeetCode interview questions while Goldman Sachs lists 261. They share 10 problems — 32% of Databricks's bank and 4% of Goldman Sachs's. Focus on the overlap first, then drill into 21 Databricks-only and 251 Goldman Sachs-only questions.

Overview

Databricks

31 questions

Easy 2Medium 22Hard 7
Goldman Sachs

261 questions

Easy 48Medium 165Hard 48

Preparation Strategy

Step 1 — Shared core: Solve the 10 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Databricks and Goldman Sachs.

Step 2 — Company-specific depth: Add Databricks-specific problems like Design Hit Counter, IP to CIDR, Design Tic-Tac-Toe and Goldman Sachs-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: Databricks skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Databricks
2
Goldman Sachs
48
Medium
Databricks
22
Goldman Sachs
165
Hard
Databricks
7
Goldman Sachs
48

Top Shared Topics

10 Shared Questions

High-priority problems to practice for both Databricks and Goldman Sachs.

ProblemDifficulty
House RobberMedium
Snapshot ArrayMedium
Text JustificationHard
Unique Paths IIIHard
Spiral MatrixMedium
Shortest Path in Binary MatrixMedium
String to Integer (atoi)Medium
Merge IntervalsMedium
Rotting OrangesMedium
Two SumEasy

Unique to Databricks (21)

Problems in Databricks's list that do not appear at Goldman Sachs.

ProblemDifficulty
Design Hit CounterMedium
IP to CIDRMedium
Design Tic-Tac-ToeMedium
Find All Anagrams in a StringMedium
Step-By-Step Directions From a Binary Tree Node to AnotherMedium
Time Based Key-Value StoreMedium
House Robber IIMedium
RLE IteratorMedium
Longest Palindrome by Concatenating Two Letter WordsMedium
Closest Leaf in a Binary TreeMedium
Shortest Path in a Grid with Obstacles EliminationHard
Number of Recent CallsEasy

Unique to Goldman Sachs (251)

Problems in Goldman Sachs's list that do not appear at Databricks.

ProblemDifficulty
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
LRU CacheMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Find the Winner of the Circular GameMedium
Robot Bounded In CircleMedium

Frequently Asked Questions

How many LeetCode questions do Databricks and Goldman Sachs share?

Databricks and Goldman Sachs share 10 LeetCode interview questions. 21 problems appear only in Databricks's list and 251 appear only in Goldman Sachs's list.

What topics overlap most between Databricks and Goldman Sachs?

The most common shared topics between Databricks and Goldman Sachs are Array (9 shared questions), Matrix (4 shared questions), Hash Table (2 shared questions), String (2 shared questions), Simulation (2 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Databricks or Goldman Sachs?

Databricks has 2 Easy, 22 Medium, and 7 Hard questions. Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. Databricks has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Databricks and Goldman Sachs?

Start with the 10 shared problems since they cover what both companies ask most often. Then add 20 Databricks-specific and 20 Goldman Sachs-specific questions to round out your prep.

Explore More