Databricks vs Salesforce Interview Questions

Databricks lists 31 LeetCode interview questions while Salesforce lists 188. They share 6 problems — 19% of Databricks's bank and 3% of Salesforce's. Focus on the overlap first, then drill into 25 Databricks-only and 182 Salesforce-only questions.

Overview

Databricks

31 questions

Easy 2Medium 22Hard 7
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

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

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

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

Difficulty Comparison

Easy
Databricks
2
Salesforce
25
Medium
Databricks
22
Salesforce
112
Hard
Databricks
7
Salesforce
51

Top Shared Topics

6 Shared Questions

High-priority problems to practice for both Databricks and Salesforce.

ProblemDifficulty
Time Based Key-Value StoreMedium
House Robber IIMedium
Spiral MatrixMedium
Merge IntervalsMedium
Rotting OrangesMedium
Two SumEasy

Unique to Databricks (25)

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

ProblemDifficulty
Design Hit CounterMedium
IP to CIDRMedium
Design Tic-Tac-ToeMedium
House RobberMedium
Find All Anagrams in a StringMedium
Step-By-Step Directions From a Binary Tree Node to AnotherMedium
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
Snapshot ArrayMedium

Unique to Salesforce (182)

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

ProblemDifficulty
Minimum Operations to Reduce an Integer to 0Medium
String CompressionMedium
Time Needed to Rearrange a Binary StringMedium
LFU CacheHard
Closest Equal Element QueriesMedium
Smallest Substring With Identical Characters IHard
Smallest Substring With Identical Characters IIHard
Remove Adjacent Almost-Equal CharactersMedium
Subarray Product Less Than KMedium
Maximum Palindromes After OperationsMedium
LRU CacheMedium
Maximum Number of Occurrences of a SubstringMedium

Frequently Asked Questions

How many LeetCode questions do Databricks and Salesforce share?

Databricks and Salesforce share 6 LeetCode interview questions. 25 problems appear only in Databricks's list and 182 appear only in Salesforce's list.

What topics overlap most between Databricks and Salesforce?

The most common shared topics between Databricks and Salesforce are Array (5 shared questions), Hash Table (2 shared questions), Matrix (2 shared questions), String (1 shared questions), Binary Search (1 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Databricks or Salesforce?

Databricks has 2 Easy, 22 Medium, and 7 Hard questions. Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. Salesforce has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Databricks and Salesforce?

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

Explore More