Tech Interview Questions

Practice 9,031+ interview questions from top companies including Google, Meta, Amazon, and more. Filter by company, role, and category.

Popular Interview Questions

Machine Learning Engineer + Data Scientist + Software Engineer Interview Questions

Practice the exact questions companies are asking right now.

9.0k Questions 486 Companies08.11.2026
Showing 20 results
Role
Verkada logo
Verkada
Medium
Software Engineer

Find users with access to all cameras

Given entities and relationships (user, owns, camera), (user, belongs_to, group), (group, owns, camera), and (group, belongs_to, group) where groups c...

Coding & Algorithms
7
0
66 people solved
Aug 8, 2025
xAI logo
xAI
Medium
Software Engineer

Versioned Key-Value Store with Nested Transactions (Begin, Commit, Rollback)

Implement an in-memory versioned key-value database that supports transactional writes with three transaction-control operations: begin (start a trans...

Coding & Algorithms
1
0
18 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute optimal locker placement with obstacles

Compute optimal locker placement with obstacles Given house coordinates H = {(xi, yi)} and tree coordinates T = {(xj, yj)} on a 2D integer grid, choos...

Coding & Algorithms
4
0
31 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Design a streaming median structure

Design a streaming median structure Design a data structure for a number stream that supports: add(num: int) in O(log n) time and median() -> float in...

Coding & Algorithms
2
0
33 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Implement two array-cost minimization algorithms

Implement two array-cost minimization algorithms that appeared back-to-back in an AWS SDE online assessment. Each can be solved independently. Part 1 ...

Coding & Algorithms
4
0
36 people solved
Aug 7, 2025
Robinhood logo
Robinhood
Medium
Software Engineer

Implement string-based candlestick classifier

Implement a function that takes a single input string encoding N daily OHLC price records in the format "o1,h1,l1,c1;o2,h2,l2,c2;...;oN,hN,lN,cN" (sem...

Coding & Algorithms
11
0
126 people solved
Aug 7, 2025
Databricks logo
Databricks
Medium
Software Engineer

Design a rolling event tracker with ranges

Design a rolling event tracker that supports time-based queries. Implement a data structure with: ( 1) record(timestamp): record one event at integer ...

Coding & Algorithms
15
0
135 people solved
Aug 7, 2025
PayPal logo
PayPal
Medium
Software Engineer

Compare write-back vs write-through caches

Compare write-back and write-through caching policies. Explain how each handles writes, coherence, durability, latency, and bandwidth; discuss typical...

Coding & Algorithms
2
0
43 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Group a tree by vertical columns

Group a tree by vertical columns Given the root of a binary tree, produce a vertical listing of nodes: assign each node an x-coordinate (root at x=0; ...

Coding & Algorithms
1
0
30 people solved
Aug 7, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Describe challenges and give constructive feedback

Describe challenges and give constructive feedback Behavioral & Leadership: Multi‑part Prompt for a Software Engineer Context: In a technical screen f...

Behavioral & Leadership
5
0
53 people solved
Aug 7, 2025
Chime logo
Chime
Medium
Software Engineer

Compute minimum time with task cooldowns

You are given a multiset of task types represented by uppercase letters (e.g., A, A, A, B, B, C). Each task takes exactly 1 time unit to execute. Runn...

Coding & Algorithms
33
0
283 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Compute binary tree diameter

Compute binary tree diameter Given the root of a binary tree, compute the tree's diameter defined as the maximum number of edges on any path between t...

Coding & Algorithms
4
0
44 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Compute weighted sum of nested lists

Compute weighted sum of nested lists Given a nested collection that can contain integers or other nested collections, compute the depth-weighted sum w...

Coding & Algorithms
7
0
51 people solved
Aug 7, 2025
UiPath logo
UiPath
Medium
Machine Learning Engineer

Compute Minimum L-Moves on Infinite Grid

Compute Minimum L-Moves on Infinite Grid On an infinite 2D grid, a chess-like piece moves in L-shapes: from (x, y) it can go to (x±1, y± 2) or (x±2, y...

Coding & Algorithms
2
0
25 people solved
Aug 7, 2025
DocuSign logo
DocuSign
Medium
Software Engineer

Find maximum island sum and required indices

You are given an m×n integer grid where 0 denotes water and any non-zero value denotes land. Two land cells are connected if they share an edge (4-dir...

Coding & Algorithms
14
0
112 people solved
Aug 7, 2025
Bridge logo
Bridge
Medium
Software Engineer

Design Minesweeper and Optimize Click Performance

Design a Minesweeper game. At game start, initialize an m×n board by randomly placing k bombs. Implement: ( 1) printBoard(): return a human-readable s...

Coding & Algorithms
8
0
67 people solved
Aug 7, 2025
Oracle logo
Oracle
Medium
Software Engineer

Minimize sum with halving operations

Minimize sum with halving operations You are given an array of non-negative integers nums and an integer k. In one operation, choose any index i and r...

Coding & Algorithms
4
0
47 people solved
Aug 7, 2025
Oracle logo
Oracle
Medium
Software Engineer

Parse logs and query by time

Implement a parser that converts raw log lines into structured records with fields {timestamp, level, message}. Build an API to support: (a) insert(lo...

Data Manipulation (SQL/Python)
0
0
3 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Determine reachability and optimize task scheduling

Question LeetCode 780. Reaching Points: Given four integers a, b, c, d (1 <= a, b, c, d <= 1000). Starting from (a, b) you may repeatedly apply either...

Coding & Algorithms
2
0
38 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Find minimal rate k and subset sum

Question LeetCode 875. Koko Eating Bananas — Given vault sizes [3, 6, 7, 11] and time h = 8 hours, find the minimum integer rate k (vault units per ho...

Coding & Algorithms
50
0
359 people solved
Aug 4, 2025