Databricks Software Engineer Coding & Algorithms Interview Questions

Practice 54 real Coding & Algorithms interview questions for Software Engineer roles at Databricks.

54 Questions 1 Company07.30.2026
Showing 20 results
Role
Databricks logo
Databricks
Hard
Software EngineerSenior+

Implement Generalized Tic-Tac-Toe

Implement Generalized Tic-Tac-Toe Implement a TicTacToe class for two players on an m by n board with a configurable winning length k. `text TicTacToe...

Coding & Algorithms
15
0
149 people solved
Jul 7, 2026
Databricks logo
Databricks
Hard
Software EngineerSenior+

Build a Constant-Time Snapshot Set Iterator

Build a Constant-Time Snapshot Set Iterator Design SnapshotSet, a set of integers whose iterators observe an immutable logical snapshot without copyin...

Coding & Algorithms
8
0
90 people solved
Jul 7, 2026
Databricks logo
Databricks
Medium
Software EngineerSenior+

Detect a K-in-a-Row Win on a Rectangular Board

Detect a K-in-a-Row Win on a Rectangular Board Implement winning_move(board, row, col, k) after a valid move has placed a player's nonzero integer tok...

Coding & Algorithms
0
0
10 people solved
Jul 30, 2026
Databricks logo
Databricks
Medium
Software Engineer

Find the Earliest Anagram Window

Find the Earliest Anagram Window Problem Implement firstAnagramStart(text, pattern) -> index. Return the zero-based start index of the earliest contig...

Coding & Algorithms
1
0
18 people solved
Jun 29, 2026
Databricks logo
Databricks
Hard
Software Engineer

Implement a Snapshot Set Iterator

Design and implement a set data structure that supports snapshot iteration. The set stores unique values. It must support the following operations: - ...

Coding & Algorithms
21
0
182 people solved
Apr 12, 2026
Databricks logo
Databricks
Medium
Software EngineerSenior+

Check Whether Two Strings Are Anagrams

Problem Implement are_anagrams(a, b). Return true exactly when a and b contain the same lowercase English letters with the same multiplicities, possib...

Coding & Algorithms
2
0
31 people solved
Apr 7, 2026
Databricks logo
Databricks
Hard
Software Engineer Locked

Find a Path Between Nodes in a Fibonacci Tree

Practice a Databricks coding interview problem focused on find a path between nodes in a fibonacci tree. The prompt emphasizes edge cases, clean imple...

Coding & Algorithms
1
0
16 people solved
May 30, 2026
Databricks logo
Databricks
Medium
Software Engineer

Track Customer Revenue and Referral Revenue

Track Customer Revenue and Referral Revenue Problem Implement a top-level function that processes an in-memory customer revenue tracker through a lite...

Coding & Algorithms
2
1
26 people solved
Apr 18, 2026
Databricks logo
Databricks
Medium
Software Engineer Locked

Design an n x n Tic-Tac-Toe Game

This question evaluates a candidate's ability to design a class-based data structure that tracks game state and efficiently detects a win condition af...

Coding & Algorithms
4
0
30 people solved
Jun 23, 2026
Databricks logo
Databricks
Medium
Software Engineer

Find k customers with least revenue

Problem You are given a list of purchase events. Each event contains: - customer_id (string or int) - amount (integer, may be 0; assume non-negative u...

Coding & Algorithms
28
0
391 people solved
Feb 12, 2026
Databricks logo
Databricks
Medium
Software Engineer

Implement a snapshotable set with iterators

Implement a SnapshotSet data structure with the following API: add(x), remove(x), contains(x), snapshot() -> sid, and iterate(sid) -> iterator over th...

Coding & Algorithms
34
0
495 people solved
Aug 11, 2025
Databricks logo
Databricks
Hard
Software EngineerNew Grad

Implement streaming RLE and bit-packed codec

You are implementing a simple compression scheme for sequences of 32‑bit signed integers. The codec should support two encoding strategies: 1. Run‑Len...

Coding & Algorithms
50
0
677 people solved
Dec 10, 2025
Databricks logo
Databricks
Medium
Software EngineerNew Grad

Design KV store with sliding-window average QPS

Problem Design an in-memory key–value store that supports mutation operations and can report the average QPS (queries per second) over a recent time w...

Coding & Algorithms
27
0
363 people solved
Dec 17, 2025
Databricks logo
Databricks
Hard
Software EngineerNew Grad

Find path in implicit Fibonacci tree

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) is a single n...

Coding & Algorithms
136
0
1029 people solved
Dec 10, 2025
Databricks logo
Databricks
Medium
Software Engineer

Implement run-length encoding and decoding

You are given a string consisting of lowercase English letters. You need to implement run-length encoding (RLE) and its corresponding decoding. 1. Enc...

Coding & Algorithms
43
0
371 people solved
Dec 8, 2025
Databricks logo
Databricks
Medium
Software Engineer

Check if CIDR is fully canceled by rules

You are given: - A target CIDR block T as a string, e.g. "10.0.0.0/16". - A list of rule CIDR blocks. Each rule has: - A type: either "allow" or "de...

Coding & Algorithms
23
0
202 people solved
Dec 8, 2025
Databricks logo
Databricks
Hard
Software Engineer Locked

Implement an Alternating Tic-Tac-Toe Game

This question evaluates a candidate's ability to implement state management, alternating turn logic, input validation, board representation, game outc...

Coding & Algorithms
2
0
16 people solved
May 30, 2026
Databricks logo
Databricks
Medium
Software Engineer

Implement Snapshot Iterator Without Order Guarantees

Design and implement a mutable collection that supports snapshot iteration. The collection stores unique values and supports the following operations:...

Coding & Algorithms
1
0
13 people solved
Feb 16, 2026
Databricks logo
Databricks
Hard
Software Engineer Locked

Determine allow/deny for an IP via CIDR rules

This question evaluates understanding of IPv4 addressing, CIDR range matching, rule ordering and precedence, and algorithmic correctness in determinin...

Coding & Algorithms
18
0
180 people solved
Feb 12, 2026
Databricks logo
Databricks
Hard
Software EngineerNew Grad Locked

Optimize a SQL query plan tree

This question evaluates understanding of relational algebra, query optimization techniques, and tree-based plan transformations such as predicate push...

Coding & Algorithms
7
0
65 people solved
Jan 22, 2026

Explore more Databricks Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Databricks Software Engineer categories
Browse all