Tech Interview Questions

Practice 9,224+ 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.2k Questions 486 Companies08.16.2026
Showing 20 results
Role
Uber logo
Uber
Medium
Data Scientist

Design a Ride-Hailing ETA System

You are a Data Scientist at a ride-hailing company. Design an ETA system used in the rider and driver apps to estimate both pickup ETA and trip ETA. D...

Machine Learning
7
0
72 people solved
Jan 14, 2026
Uber logo
Uber
Medium
Data Scientist

Convert a PDF to a CDF

Given a continuous random variable X with probability density function f(x), write code or describe an algorithm to construct its cumulative distribut...

Coding & Algorithms
10
0
79 people solved
Jan 14, 2026
Pinterest logo
Pinterest
Medium
Data Scientist

Design and Evaluate a Home Carousel

Pinterest is considering adding a horizontally scrollable carousel at the top of the Home feed, similar to Instagram Stories. The carousel may surface...

Analytics & Experimentation
7
0
119 people solved
Jan 14, 2026
Imc logo
Imc
Medium
Data Scientist Locked

Solve a constrained problem using KKT conditions

This question evaluates understanding of constrained optimization using Karush–Kuhn–Tucker (KKT) conditions, including Lagrangian formulation, station...

Machine Learning
3
0
46 people solved
Jan 14, 2026
Imc logo
Imc
Medium
Data Scientist Locked

Choose optimal posted price under adverse selection

This question evaluates probabilistic reasoning, Bayesian updating, expected-value optimization under asymmetric information, and basic mechanism-desi...

Machine Learning
2
0
52 people solved
Jan 14, 2026
Wayve logo
Wayve
Easy
Software Engineer

Compute an Exact Factorial

Compute an Exact Factorial Implement factorial(n) and return the exact integer value of n!. 0! is defined as 1. The input is always a valid nonnegativ...

Coding & Algorithms
1
0
21 people solved
Apr 9, 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
14 people solved
Apr 9, 2026
Google logo
Google
Hard
Software Engineer Locked

Find Dictionary Matches for a Jammed String

This question evaluates string-processing and pattern-matching skills, specifically run-length grouping of consecutive characters and efficient dictio...

Coding & Algorithms
7
0
63 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
11 people solved
Apr 9, 2026
Perplexity logo
Perplexity
Medium
Data Scientist Locked

Implement Stratified Sampling by Country

This question evaluates understanding of stratified sampling, proportional allocation across groups, reproducible random sampling, data grouping and e...

Coding & Algorithms
3
0
50 people solved
Apr 9, 2026
Hudson logo
Hudson
Easy
Software Engineer Locked

Count players reaching end with moving watchers

This question evaluates skills in discrete-event simulation, stateful time-step modeling, and range coverage by moving agents, as well as algorithmic ...

Coding & Algorithms
9
0
71 people solved
Nov 2, 2025
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
10 people solved
Apr 8, 2026
eBay logo
eBay
Medium
Software EngineerSenior+

Solve Dependency, Prefix, and Cache Problems

Solve the following three coding problems. Problem 1: Determine Whether All Tasks Can Be Completed You are given numTasks, the number of tasks labeled...

Coding & Algorithms
3
0
27 people solved
Apr 8, 2026
DoorDash logo
DoorDash
Easy
Data Scientist Locked

Design a Top Dasher experiment with interference

Practice designing an interference-aware experiment for a Top Dasher incentive program in a delivery marketplace. The solution covers goal setting, zo...

Analytics & Experimentation
11
0
84 people solved
Jul 1, 2025
Google logo
Google
Easy
Software Engineer Locked

Implement Memory-Efficient Document Undo/Redo

This question evaluates data structure design and algorithmic reasoning for implementing memory-efficient undo/redo semantics on a key-value document,...

Coding & Algorithms
7
0
61 people solved
Jan 12, 2026
DoorDash logo
DoorDash
Medium
Data Scientist Locked

Should DoorDash add bicycle dashers?

This question evaluates a data scientist's skills in experimental design, causal inference, marketplace analytics, metrics engineering, and business-i...

Analytics & Experimentation
6
0
61 people solved
Jan 12, 2026
Salesforce logo
Salesforce
Medium
Machine Learning EngineerSenior+

Design a collaborative spreadsheet backend

Design a web-based spreadsheet service similar to Google Sheets, with emphasis on backend architecture and data models. Focus areas: - Multiple users ...

System Design
6
0
68 people solved
Jan 12, 2026
Capital One logo
Capital One
Medium
Machine Learning Engineer Locked

Implement string/matrix simulations and counting pairs

This multi-part question evaluates implementation skills in string processing (case-insensitive substring matching), grid simulation with iterative ma...

Coding & Algorithms
8
0
75 people solved
Jan 12, 2026
Meta logo
Meta
Easy
Data Scientist

How would you compare Facebook vs Instagram Stories?

You work on short-form ephemeral content. Both Facebook Stories and Instagram Stories exist, and leadership asks: Which product should we invest in, a...

Analytics & Experimentation
12
0
100 people solved
Nov 1, 2025
Dropbox logo
Dropbox
Medium
Software Engineer

Design file-processing API with long-running jobs

You are asked to design an HTTP-based API and high-level backend architecture for processing files in a cloud storage service (similar to a simplified...

System Design
9
0
128 people solved
Nov 1, 2025