Category: String coding problemAn IP address is a 32-bit number written as four decimal octets separated by dots, such as 10.0.0.1. A CIDR block is written as base_ip/k, which...Input: List Output: Computed result
codingHardVerified Question#2
2. Circuit Breaker
Category: Array coding problemIn a distributed system, a circuit breaker mechanism shields backend servers from cascading failures. When a server encounters a streak of...Input: Array Output: Computed result
codingHardVerified Question#3
3. Find Path in Fibonacci Tree
Category: Binary tree coding problemA Fibonacci tree of order n is a binary tree defined as follows: - A tree of order 0 is a single node. - A tree of order 1 is a single node.Input: Binary tree Output: Computed result
codingHardVerified Question#4
4. Snapshot Set Iterator
Category: Algorithm coding problemDesign a data structure called SnapshotSet that supports adding and removing integers, membership checks, and capturing immutable snapshots of the...Input: List Output: Computed result
system designHardVerified Question#5
5. Top Databricks System Design Questions
Category: Linked list system design problem
System Design Questions - Databricks These are commonly asked system design questions from Databricks interviews. Updated March 2026.
Input: Linked list Output: Computed result
codingHardapi design#1
1. CODING — Implement a stock broker order handler
1. Background: In the Databricks ecosystem for financial services, managing stock orders efficiently and accurately is crucial. This problem relates to the order handling system for a stock broker, which must process orders in a transactional, reliable manner. 2. Problem Statement: You are tasked with developing a system that handles stock orders for a broker. The order system should process BUY and SELL orders and ensure no expired orders are processed. Each order has a unique ID, a stock symbol, a quantity, and a timestamp indicating when it was placed. Expired orders should be automatically removed from processing. Implement the method void processOrder(Order order) and return a list of confirmed orders. 3. Function/class signature: - class Order: - def __init__(self, order_id: int, stock_symbol: str, quantity: int, timestamp: int): - def processOrder(self, order: Order) -> List[Order]: 4. Example 1: - Input: Order(1, "AAPL", 10, 100) - Output: Confirmed Order: Order(1, "AAPL", 10, 100) - Explanation: A valid buy order is placed and confirmed. 5. Example 2: - Input: Order(2, "GOOG", 5, 50) (expired order is not processed) - Output: [] - Explanation: The order has expired and is not confirmed. 6. Constraints: - 0 < order_id <= 10^6 - 0 < quantity <= 1000 - timestamp is a positive integer designating the order time.
codingHardgraph#2
2. Coding — Find the Shortest Path in a Directed Graph
Background: In Databricks, efficient data processing often involves navigating complex dependency graphs for job scheduling. Understanding how to find the shortest path in a directed graph can optimize such workflows. Problem statement: Given a directed graph represented as an adjacency list, implement a function to find the shortest path from a starting node to a destination node. Each edge has a weight that represents the time taken to travel along that edge. If there is no path, return -1. Function/class signature: