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 480 Companies08.05.2026
Showing 20 results
Role
DoorDash logo
DoorDash
Easy
Software Engineer Locked

Compute Courier Delivery Pay

This question evaluates a candidate's ability to work with time-interval arithmetic, interval union/overlap reasoning, and aggregation of time-based p...

Coding & Algorithms
3
0
39 people solved
Apr 12, 2026
Sealth logo
Sealth
Easy
Machine Learning Engineer Locked

Implement one-cluster k-means

This question evaluates understanding of clustering algorithms and optimization of within-cluster squared error for the special case k = 1, along with...

Coding & Algorithms
2
0
30 people solved
Apr 12, 2026
Snowflake logo
Snowflake
Medium
Software Engineer

Implement Document Predicate APIs

Design a simple document service that stores text documents identified by filename. Implement these APIs: - InsertDoc(filename, content): store or ove...

Coding & Algorithms
10
1
80 people solved
Apr 12, 2026
Karat logo
Karat
Medium
Software Engineer

Implement obstacle-course run statistics

You are given a TypeScript codebase for tracking race results on an obstacle course. - A Course has a fixed number of obstacles. - A Run stores the ti...

Coding & Algorithms
3
0
39 people solved
Apr 12, 2026
Airbnb logo
Airbnb
Medium
Software Engineer Locked

Determine Exact Layover Booking

This question evaluates a candidate's competency in algorithmic problem solving, numerical precision handling, and combinatorial selection under exact...

Coding & Algorithms
59
1
412 people solved
Apr 12, 2026
Hudson logo
Hudson
Easy
Machine Learning Engineer

Count People Reaching the Boundary

You are given a 1-dimensional line segment with a right boundary at position L. There are N people with initial positions p1, p2, ..., pN, and there i...

Coding & Algorithms
3
0
26 people solved
Apr 11, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Build a File-Backed Key-Value Store

This question evaluates a candidate's understanding of persistent key-value storage, in-memory versus on-disk state management, serialization/deserial...

Coding & Algorithms
6
0
63 people solved
Apr 11, 2026
Warp logo
Warp
Medium
Software Engineer

Implement Terminal Tabs and Split Panels

Implement a data structure that models a terminal application with multiple tabs and split panels. Requirements: - A Terminal can create and store mul...

Coding & Algorithms
0
0
3 people solved
Apr 10, 2026
OpenAI logo
OpenAI
Easy
Software Engineer

Implement Chat Event Counter

Design an in-memory counter for chat activity. You need to implement a class with the following two methods: `text processEvent(userId: string, chatId...

Coding & Algorithms
2
0
24 people solved
Apr 10, 2026
Uber logo
Uber
Medium
Data ScientistSenior+

Find the Next Larger Palindrome

Given a positive integer n, return the smallest integer strictly greater than n whose decimal representation is a palindrome. A palindrome reads the s...

Coding & Algorithms
2
0
24 people solved
Apr 10, 2026
Microsoft logo
Microsoft
Medium
Software EngineerSenior+

Implement SQL Table and DNA Ordering

Two independent coding exercises were asked. Solve both. Problem A: CSV-backed in-memory table Build a tiny in-memory relational table initialized fro...

Coding & Algorithms
2
0
27 people solved
Apr 10, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Design a High-Frequency Job Scheduler

This question evaluates competency in distributed systems design, scheduling semantics (including high-frequency and recurring jobs), durable job stor...

System Design
5
0
41 people solved
Apr 10, 2026
Faire logo
Faire
Medium
Software Engineer

Print a Centered Pascal Triangle

Given a positive integer height, generate the first height rows of Pascal's triangle and print them as a centered text triangle. Formatting requiremen...

Coding & Algorithms
1
0
27 people solved
Apr 10, 2026
Uber logo
Uber
Hard
Software Engineer

Simulate and Construct Tournament Rankings

You are given a single-elimination tournament represented by an array of ranks. The array is a permutation of the integers 1..n, where a smaller numbe...

Coding & Algorithms
1
0
13 people solved
Apr 9, 2026
Amazon logo
Amazon
Medium
Software Engineer

Solve Union-Find, Graph, and Stream Problems

Solve the following independent coding problems. 1. Merge Product Categories You are given a list of tuples (productA, productB). Each tuple means the...

Coding & Algorithms
0
0
6 people solved
Apr 9, 2026
Modular logo
Modular
Hard
Software Engineer

Find the Critical Path

You are given a project represented as a directed acyclic graph of tasks. Each task has: - a unique task name - a list of prerequisite task names - a ...

Coding & Algorithms
0
0
10 people solved
Apr 9, 2026
Sigmacomputing logo
Sigmacomputing
Medium
Software Engineer

Build a Pivot Table Aggregator

Implement a function that builds a pivot table from a list of records. Each record contains a row_key, a column_key, and a numeric value. Requirements...

Coding & Algorithms
2
0
22 people solved
Apr 9, 2026
Google logo
Google
Medium
Software EngineerNew Grad

Solve Two Coding Interview Problems

You are asked to solve two independent coding problems. Problem 1: Evaluate Nested Math Expressions Implement a function that evaluates a string expre...

Coding & Algorithms
0
0
9 people solved
Apr 8, 2026
Airbnb logo
Airbnb
Medium
Software Engineer

Solve Linked-List and Iterator Problems

You are asked to solve two coding problems. Problem 1: Detect shared nodes between possibly cyclic linked lists You are given the heads of two singly ...

Coding & Algorithms
10
0
99 people solved
Apr 8, 2026
Waymo logo
Waymo
Medium
Software Engineer

Find Shortest Paths to Target Nodes

You are given a weighted directed graph representing distances between nodes. - There are n nodes labeled from 0 to n - 1. - edges[i] = [u, v, w] mean...

Coding & Algorithms
3
0
28 people solved
Apr 8, 2026