Tech Interview Questions

Practice 9,160+ 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.11.2026
Showing 20 results
Role
Pinduoduo logo
Pinduoduo
Medium
Software EngineerSenior+

Traverse a Matrix in Spiral Order

Traverse a Matrix in Spiral Order Problem Given an m x n matrix, return all elements in clockwise spiral order. Begin at the top-left corner, move rig...

Coding & Algorithms
0
0
8 people solved
May 4, 2026
Capital One logo
Capital One
Medium
Data Scientist

Model network-service unit economics and breakeven

A network service charges $40/month with the first 3 months free. Costs: variable service cost $25 per active month; one-time install cost $35 at acti...

Statistics & Math
4
0
72 people solved
Oct 13, 2025
Capital One logo
Capital One
Easy
Data Scientist

Match Netflix profit; derive required subscribers

Subscription Profit and Break-even (All Monthly) Assume all figures are monthly and "M" denotes millions. We model subscription profit as: - Profit = ...

Statistics & Math
4
0
72 people solved
Oct 13, 2025
Capital One logo
Capital One
Hard
Data Scientist

Define and validate an airline profitability metric

Airline Route Profitability Metric with Quality Guardrails Context You need a single, decomposable primary metric for airline route profitability that...

Analytics & Experimentation
5
0
92 people solved
Oct 13, 2025
Google logo
Google
Medium
Data Scientist

Define and sample a truncated normal

Define the truncated normal Z | a < Z < b for Z ~ N(0,1): write the normalized pdf and cdf. Then design efficient samplers for three cases: (i) a = 1,...

Statistics & Math
5
0
69 people solved
Oct 13, 2025
Google logo
Google
Medium
Data Scientist Locked

Test if one value comes from N(μ,σ²)

This question evaluates understanding of hypothesis testing and statistical inference, specifically the formulation and interpretation of a z-statisti...

Statistics & Math
6
0
59 people solved
Oct 13, 2025
Apple logo
Apple
Medium
Data Scientist

Build leak-safe sklearn model with calibration

You must build an end‑to‑end scikit‑learn pipeline to predict churn_28d at decision time t0 using only features available at or before t0 (no leakage)...

Machine Learning
7
0
91 people solved
Oct 13, 2025
Google logo
Google
Hard
Data Scientist

Predict and act on contract renewal risk

Predicting Enterprise Contract Renewal After a Quality Incident Context A video-conferencing provider experienced a spike in call disconnects. You nee...

Machine Learning
10
0
82 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist Locked

Design a clustered A/B test with spillovers

This question evaluates a data scientist's understanding of cluster-randomized experiments with spillovers, covering causal inference under interferen...

Analytics & Experimentation
4
0
50 people solved
Oct 13, 2025
Snapchat logo
Snapchat
Medium
Data Scientist

Compute posterior spam risk from flags

A binary classifier flags spammy requesters. Last week the base rate of spam among all requesters was 12%. The classifier has true positive rate (TPR)...

Statistics & Math
7
0
74 people solved
Oct 13, 2025
Uber logo
Uber
Hard
Data Scientist

Design a switchback and choose block length

Switchback Experiment Design: Airport Pickup Pricing with Spillovers You are a data scientist designing a switchback (time-based A/B) experiment to ev...

Analytics & Experimentation
28
0
260 people solved
Oct 13, 2025
Flatiron Health logo
Flatiron Health
Medium
Data Scientist

Compute sample size and significance

You are planning a two-variant A/B test with equal allocation and a binary primary metric (conversion). Baseline rate p0 = 0.045. You want to detect a...

Statistics & Math
5
0
62 people solved
Oct 13, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist Locked

Explain AUC, imbalance, losses, and networks

This question evaluates a candidate's understanding of imbalanced classification and regression concepts, including ROC/PR curves and AUC, prevalence ...

Machine Learning
10
0
84 people solved
Oct 13, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Compute posterior and predictive coin probabilities

Bayesian coin: posterior, prediction, and stopping-time expectation Context - You have two coins and will use the same coin for all flips: - Fair co...

Statistics & Math
16
0
122 people solved
Oct 13, 2025
TikTok logo
TikTok
Hard
Data Scientist Locked

Detect and suppress bad sellers robustly

This question evaluates a candidate's competence in designing end-to-end machine learning risk systems, including label strategy and triage, feature e...

Machine Learning
4
0
53 people solved
Oct 13, 2025
Pinterest logo
Pinterest
Hard
Data Scientist

Design rigorous A/B test and causal analysis

Experiment Design and Causal Inference: Multi-part Problem Context: You are designing a high-traffic web A/B test on a binary conversion metric. Answe...

Statistics & Math
16
0
143 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Handle an irate passenger after flight delay

Role-Play: Irregular Operations Recovery and Communication Plan Scenario - A flight is delayed 5 hours due to a crew time-out cascading from weather a...

Behavioral & Leadership
9
0
130 people solved
Oct 13, 2025
Thumbtack logo
Thumbtack
Medium
Data Scientist Locked

Forecast response-rate trends with backtesting

This question evaluates proficiency in time-series forecasting and model validation, including feature engineering, model selection, rolling-origin ba...

Machine Learning
4
0
58 people solved
Oct 13, 2025
Boston Consulting Group logo
Boston Consulting Group
Medium
Data Scientist

Achieve 0.95 precision via thresholding

Deploying a High-Precision Classifier on an Imbalanced Dataset You are given a binary classification problem with 50,000 samples and ~5% positives. Th...

Machine Learning
7
0
56 people solved
Oct 13, 2025
Pinterest logo
Pinterest
Hard
Data Scientist

Estimate billboard reach and impressions

Digital Billboard: Weekly Reach, Impressions, and Store-Visit Attribution Context You are estimating the performance of a single digital billboard bes...

Statistics & Math
11
0
151 people solved
Oct 13, 2025