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
Roblox logo
Roblox
Easy
Data Scientist Locked

Compute diff-in-diff and pretrend flag

This question evaluates understanding of difference-in-differences estimation, simple pretrend detection, and related data-processing competencies for...

Analytics & Experimentation
6
0
48 people solved
Oct 3, 2025
Meta logo
Meta
Hard
Software Engineer

Design an e-commerce price tracking service

Design a backend system for an e-commerce price-tracking service. Users can track products from a large online retailer, view historical prices, and r...

System Design
1
0
28 people solved
Mar 23, 2025
WeRide logo
WeRide
Medium
Software Engineer

Implement matrix multiplication and fast exponentiation

1) - A n × m - B m × p C = A × Bn × p - - - MOD MOD 2) Exponentiation by Squaring x k MOD - x^k - x^k mod MOD - O(log k) - k = 0x = 0 3) ...

Coding & Algorithms
9
0
68 people solved
Oct 2, 2025
Amazon logo
Amazon
Medium
Software Engineer

Design a no-repeat top-frequency music player

Design and implement a music player that receives song lists from new users and returns songs to play in frequency order without repeating a song in t...

Coding & Algorithms
4
0
49 people solved
Mar 22, 2025
Amazon logo
Amazon
Hard
Software Engineer

Maximize total bandwidth of data channel pairs

You are optimizing how information flows through a network of processing nodes. There are n processing nodes. The bandwidth capability of the i-th nod...

Coding & Algorithms
3
0
37 people solved
Oct 1, 2025
Snapchat logo
Snapchat
Medium
Software Engineer Locked

Implement a recent-use eviction cache

This question evaluates a candidate's ability to design and implement a fixed-capacity key-value cache with a recent-use eviction policy, emphasizing ...

Coding & Algorithms
1
0
27 people solved
Sep 29, 2025
Easy
Data ScientistIntern Locked

Compute multi-step Markov probabilities and estimate transitions

This question evaluates understanding of discrete-time Markov chains, computation of multi-step transition probabilities from a one-step transition ma...

Statistics & Math
3
0
30 people solved
Sep 28, 2025
Easy
Data Scientist

Check if a numeric string is divisible by 8

Question You are given a very large non-negative integer represented as a decimal string s (it may be too large to fit in standard 64-bit integer type...

Coding & Algorithms
5
0
38 people solved
Sep 28, 2025
xAI logo
xAI
Medium
Machine Learning Engineer

Identify all bad nodes with group tests

You have N nodes. Each node is either good or bad (unknown to you). You can call a function test(S) on a subset of nodes S: - test(S) = True iff all n...

Coding & Algorithms
15
1
239 people solved
Sep 22, 2025
xAI logo
xAI
Medium
Machine Learning Engineer

Implement dynamic batching for token decoding

You are given a black-box “simulated language model” interface that can advance many sequences in a batch. Model interface - Tokens are integers. - mo...

Coding & Algorithms
44
0
323 people solved
Sep 22, 2025
StackAdapt logo
StackAdapt
Easy
Software Engineer

Design a time-windowed key-value store

Implement a time-windowed key-value store ("Windowed Map") that receives key/value updates at irregular times and only keeps entries from the most rec...

Coding & Algorithms
8
0
104 people solved
Mar 4, 2025
Gts logo
Gts
Medium
Data Scientist Locked

Analyze duplicating data in linear regression

This question evaluates understanding of linear regression theory and statistical inference, specifically how duplicating observations affects OLS coe...

Machine Learning
4
0
31 people solved
Sep 18, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Solve a Three-Roll Optimal Stopping Game

Solve a Three-Roll Optimal Stopping Game A fair six-sided die may be rolled at most three times. After each of the first two rolls, stop and receive t...

Statistics & Math
0
0
2 people solved
Feb 26, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Price a Sequential Four-Box Search Game

Price a Sequential Four-Box Search Game Four boxes contain one \$100 prize. Each opening costs the same fee x; you choose an unopened box and may stop...

Statistics & Math
0
0
2 people solved
Feb 26, 2025
Uber logo
Uber
Hard
Data Scientist Locked

Design promo experiment and explain correlation

This question evaluates causal inference, observational data interpretation, and randomized experiment design skills in a two-sided marketplace contex...

Analytics & Experimentation
7
0
59 people solved
Sep 16, 2025
Uber logo
Uber
Medium
Data Scientist

Compute square root to 1 decimal

Problem Given a non-negative real number x, implement a function sqrt1dp(x) that returns \(\sqrt{x}\) rounded (or truncated—clarify with interviewer) ...

Coding & Algorithms
15
0
109 people solved
Sep 16, 2025
Character logo
Character
Medium
Data Scientist

Write SQL for character safety and engagement metrics

You are working with a conversational product that has users, AI characters, and conversations. Write SQL queries for each of the tasks below. Assume ...

Data Manipulation (SQL/Python)
0
0
8 people solved
Sep 13, 2025
XPeng logo
XPeng
Medium
Machine Learning Engineer

Compute optimal matrix multiplication order

Given an array dims[0..n] where matrix i has dimensions dims[i-1] × dims[i] (for i = 1..n), compute the minimum number of scalar multiplications neede...

Coding & Algorithms
1
0
13 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Solve and optimize menu combo DP

Given up to N different menu items, each with a unit price, and a list of combo offers where each offer specifies quantities for some items and a tota...

Coding & Algorithms
5
0
24 people solved
Sep 6, 2025
TripStack logo
TripStack
Medium
Software Engineer

Compute minimum resources for overlapping intervals

You are given n tasks as half-open time intervals [start, end) on a single day. Determine the minimum number of identical servers needed so that no tw...

Coding & Algorithms
1
0
7 people solved
Sep 6, 2025