Databricks logo

Databricks Medium Interview Questions

7 medium-level practice questions for Databricks technical interviews

coding Medium Verified Question #1

1. Find Optimal Commute


Category: Grid/matrix coding problem
You are given a 2D grid representing a city map. Each cell contains one of the following: - 'S' -- your starting location - 'D' -- your...
Input: 2D grid
Output: Computed result
coding Medium Verified Question #2

2. Bottleneck Dependencies


Category: Graph coding problem
You are managing a build pipeline for a software project. The pipeline contains n components labeled 0 to n-1, connected by prerequisite...
Input: Graph (nodes and edges)
Output: Computed result
coding Medium Verified Question #3

3. Encode And Decode


Category: Array coding problem
Implement an encoder and decoder for integer arrays using two compression techniques: Run-Length Encoding (RLE) and Bit Packing (BP).
Input: Array of integers
Output: Computed result
coding Medium Verified Question #4

4. Customer Revenue System


Category: Algorithm coding problem
Design a customer revenue tracking system that supports direct sign-ups and referral-based registration. Each customer has a unique auto-incrementing...
Input: List
Output: Array
coding Medium Verified Question #5

5. Design Lazy Array


Category: Array coding problem
Given an integer array, a list of multipliers, and a target value, determine the first index in the array whose element equals the target after all...
Input: Array
Output: Computed result
coding Medium Verified Question #6

6. Remove Covered Point


Category: Interval-based coding problem
A warehouse uses a shelving system where each shelf occupies a contiguous range of slot positions [start, end) (the end position is exclusive --...
Input: List
Output: Computed result
coding Medium Verified Question #7

7. Tic-Tac-Toe II


Category: Algorithm coding problem
Design a generalized Tic-Tac-Toe game played on an n x m board where the first player to place k consecutive marks in a row, column, or diagonal...
Input: Number(s)
Output: Computed result

No AI generated questions yet for Databricks.

Start practicing Databricks questions

Sign up for free to access walkthroughs, AI-generated questions, and more.

Get Started Free