Databricks Coding Interview Questions

These are the 28 Databricks coding interview questions AceOffer has reconstructed from candidate reports, sorted by how often each was reported. KV Store QPS / Hit Counter (Map Operations) leads at 35×. Every question shows when it was last reported; the catalog refreshes monthly.

Key facts

  • 28 distinct coding questions indexed
  • 257 candidate reports across those questions
  • Most reported: KV Store QPS / Hit Counter (Map Operations) — 35× (last seen August 2026)
  • Refreshed monthly · last updated September 2026

Which Databricks rounds ask coding questions?

Databricks draws coding questions from the rounds below. Counts are distinct questions, not times asked.

Usually two 45-60 minute rounds, implementation-style rather than LeetCode: CIDR firewall matching, a KV store that tracks its own QPS, the snapshot-set iterator, and a multi-threaded log writer with synchronous disk writes.20 questions

Most reported: KV Store QPS / Hit Counter (Map Operations) 35×

One coding screen. The multi-mode commute shortest-path problem dominates at 30 reports, with a recorded trap: one BFS per transport mode is rejected in favour of a single pass.8 questions

Most reported: Optimal Commute Assignment / Shortest Path with Multiple Transport Modes 30×

Which Databricks coding questions get asked most?

Sorted by candidate-report frequency. Click any question for the full breakdown.

QuestionRoundReportedLast seen
KV Store QPS / Hit Counter (Map Operations)

Design and implement an in-memory key-value store class supporting put(key, value) and get(key) operations. Additionally, implement methods to track and return the…

Coding35×August 2026
IP CIDR Firewall Rules MatchingFree

Implement a firewall class (e.g., IpFirewall) that is initialized with an ordered list of rules, where each rule is a pair of…

Coding33×August 2026
Optimal Commute Assignment / Shortest Path with Multiple Transport Modes

You are commuting across a simplified map of San Francisco, represented as a 2D grid. Each cell is one of: 'S' (starting…

Phone Screen30×August 2026
Snapshot Set / Iterator Design

Design a SnapshotSet data structure supporting the following operations: - add(x): Add element x to the set. Returns whether it was newly…

Coding20×July 2026
Tic-Tac-Toe

Implement a generalized Tic-Tac-Toe game. The board is M×N (not necessarily 3×3 or square). A player wins by placing K consecutive marks…

Coding19×August 2026
Fibonacci Tree / Path Finding

You are given a special family of binary trees called Fibonacci trees. The k-th order Fibonacci tree T(k) is defined recursively: T(1)…

Coding17×July 2026
Run-Length Encoding (RLE) / Bit-Packing

Implement a streaming encoder that compresses a sequence of 32-bit integers using two interleaved encoding strategies: Run-Length Encoding (RLE) and Bit-Packing (BP).…

Coding17×August 2026
Concurrent / Multi-threaded Log Writer

Implement a thread-safe log writer (also called a 'system programming' or 'low-level coding' problem at Databricks). Multiple threads share a single logger…

Coding16×August 2026
Customer Revenue / Referral System

Design and implement a customer revenue tracking system with the following operations: 1. insert(revenue: int) -> int: Add a new customer with…

Coding13×August 2026
Lazy Array

Implement a LazyArray class that supports deferred (lazy) evaluation. The class wraps an array of integers and exposes two main operations: 1.…

Coding11×April 2026
Anagram Substring Search (Find All Anagrams / indexOf)

Implement a function anagram_index(lookup, query) that returns the index of the first occurrence of an anagram of query as a consecutive substring…

Coding9×August 2026
Delete / Edit Interval

You are given a collection of non-overlapping intervals (each represented as [start_idx, end_idx], possibly referring to substrings of a 'cipher' password string…

Coding7×August 2026
Circuit Breaker Implementation

Implement a Circuit Breaker pattern in code. The circuit breaker wraps calls to an external service (simulated via a lambda/Supplier that returns…

Coding6×August 2026
House Robber I / II (Recursion to DP)

Databricks phone screen coding problems in this category span several related forms: 1. House Robber (LC 198 base): Given an array of…

Phone Screen4×August 2026
Tetris / Falling Blocks Simulator

You are given three inputs: (1) a 2D array representing the game background/environment, which may contain pre-existing obstacle cells; (2) a 2D…

Coding3×January 2026
File System Encryption - Count Encrypted/Unencrypted Files

You are given a file system represented as a tree. There are two node types: - DirectoryNode: has a children list that…

Phone Screen2×August 2026
Uniform Random Spanning Tree from Node Groups

Given n groups of nodes (e.g., [[1], [2,3], [4,5,6]]), each group is internally connected. You must connect all groups into a single…

Phone Screen2×May 2026
Remove Covered Points

Given a set of points on a 2D plane (or a 1D number line, depending on variant), remove all points that are…

Coding2×June 2025
String Index Matching with Deletion Impact

You are given two strings: a reference string a and a source string b. Part 1: return the index pairs (intervals) of…

Coding2×July 2026
BuildTarget Dependency Tree Bottleneck Detection

Given a dependency tree where tasks can be built concurrently, and each task takes equal time to build, identify 'bottlenecks' in the…

Phone Screen1×May 2025
DFS with Duplicate Handling

A coding problem requiring a Depth-First Search (DFS) solution. The candidate is expected to implement a standard DFS-based solution, then discuss and…

Phone Screen1×February 2026
Design Ads Marketplace

Design an ads marketplace system. Each advertiser account has a fund (balance). N ads providers submit bids (bidding mechanism is flexible); your…

Phone Screen1×June 2025
File System Encryption - Minimize Total Encryption Time

A file system is represented as a tree with two node types: - DirectoryNode: has children (mix of DirectoryNode and FileNode) -…

Phone Screen1×April 2026
Return All Permutations / Combinations

Given a collection of elements (e.g., an array or string), return all possible permutations or combinations. This appeared as a follow-up to…

Coding1×November 2025
JSON Parser for Custom Log Formats

Implement a simplified JSON parser capable of parsing custom-formatted log files or handling strings containing escape characters. The parser should correctly handle…

Coding1×September 2025
Query Optimization with Predicate Pushdown

You are given a data structure (a tree of nodes) representing a SQL query. Your task is to implement query optimizations on…

Coding1×January 2026
Maximal Square in Binary Matrix

Given a 2D binary matrix filled with '0's and '1's, find the largest square submatrix that contains only '1's and return its…

Coding1×September 2025
Count Bit Flips Between Two Numbers

Given two integers, count the minimum number of bit flips (bit positions that differ) required to convert one number to the other.…

Coding1×September 2025

Browse the full Databricks catalog →

FAQ

How many coding questions does Databricks ask?
AceOffer has reconstructed 28 distinct Databricks coding interview questions from 257 verified candidate reports, each with verbatim follow-ups and a last-reported date.
What is the most common Databricks coding interview question?
KV Store QPS / Hit Counter (Map Operations) — reported 35 times, last seen August 2026.
How fresh is AceOffer's Databricks coding question data?
The catalog is refreshed monthly from new candidate reports, and every question shows when it was last reported.

Get the full Databricks catalog

Every question, every candidate-reported follow-up, and what passers actually do. Monthly refresh.

Is this helpful?