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
TikTok logo
TikTok
Medium
Data Scientist

Differentiate LDA and QDA; compute boundary

Binary Gaussian Classification: LDA vs QDA You are modeling a 2D binary Gaussian classifier with features (x, y): - Class 0: mean μ0 = (0, 0), covaria...

Statistics & Math
6
0
46 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist

Implement K-means and run two iterations

Given points P={(0,0),(0,2),(2,0),(2,2),(8,8),(8,10),(10,8),(10,10)} and k=2, (1) initialize centroids with k-means++ using seed=42 and Euclidean dist...

Coding & Algorithms
4
0
46 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist

Optimize threshold using confusion matrix and costs

Calibrated Classifier on an Imbalanced Dataset (1% positives) You have a perfectly calibrated binary classifier evaluated on 10,000 held-out examples....

Statistics & Math
7
0
71 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist

Derive L1 vs L2 effects with correlation

Multicollinearity: Ridge vs LASSO vs Elastic Net Setup - Two standardized predictors x1 and x2 with corr(x1, x2) = 0.99. - X'X = [[100, 99], [99, 100]...

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

Compute violation rate and flag precision in SQL

You are analyzing a Trust & Safety product in BigQuery. Assume 'today' is 2025-09-01 (UTC). Define precise metrics and write SQL to compute them, bein...

Data Manipulation (SQL/Python)
11
0
100 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Compute feed ad frequency and retention in SQL

Assume today is 2025-09-01. Schema and tiny samples: feed_impressions(impression_id, user_id, impression_time, content_type, feed_position, session_id...

Data Manipulation (SQL/Python)
7
0
60 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist

Lead a product deep dive with quantified impact

Behavioral Product Leadership Prompt (Data Scientist) You are interviewing for a Data Scientist role with a strong focus on product analytics, experim...

Behavioral & Leadership
10
0
103 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist

Model comment counts and detect anomalies

Modeling Heavy-Tailed Comment Counts and Robust Monitoring You are analyzing daily comment counts at the post–day level. The distribution is heavy-tai...

Statistics & Math
4
0
42 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist Locked

Estimate fake-account prevalence with capture-recapture

This question evaluates a data scientist's competency in capture–recapture estimation, estimation of population size with incomplete detections, stati...

Statistics & Math
3
0
27 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist

Design a feed ads A/B test with guardrails

Experiment Design: Insert One Extra Ad Every 8 Organic Posts in Main Feed Context You want to increase ad load by inserting one additional ad for ever...

Analytics & Experimentation
2
0
36 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist

Optimize IG Shopping ranking with multiple objectives

Instagram Shopping: Multi-Objective Ranking With Fairness, Fraud Robustness, and On-Device Constraints You are designing the Instagram Shopping home f...

Machine Learning
2
0
25 people solved
Oct 13, 2025
Intuit logo
Intuit
Medium
Data Scientist Locked

Build cohort 30-day retention from signup date

This question evaluates a data scientist's competency in cohort analysis, retention metric computation, handling right-censoring and edge-case treatme...

Analytics & Experimentation
8
0
68 people solved
Oct 13, 2025
NVIDIA logo
NVIDIA
Hard
Data Scientist

Analyze overfitting, DenseNet, preprocessing, and cross-validation

Image Classification in Healthcare: End-to-End Interview Task Context: You are designing and evaluating an image-classification system for a healthcar...

Machine Learning
10
0
72 people solved
Oct 13, 2025
NVIDIA logo
NVIDIA
Hard
Data Scientist

Demonstrate cultural fit and sales-oriented leadership

Context You are interviewing for a technical, customer-facing Data Scientist role at NVIDIA (HR screen). Provide concise, business-outcome-oriented re...

Behavioral & Leadership
5
0
65 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist

Design an A/B test for WFH filter

A/B Test Design: Optional "Work From Home" Filter on Search Page You are designing an online controlled experiment for a marketplace search page that ...

Analytics & Experimentation
1
0
35 people solved
Oct 13, 2025
HBO logo
HBO
Hard
Data Scientist Locked

Choose tests for rare-event A/B analysis

This question evaluates expertise in statistical experiment design for rare binary outcomes, covering hypothesis test selection for low-event-rate pro...

Statistics & Math
2
0
28 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist

Communicate trade-offs and influence launch

Product Experiment Trade‑off: Notifications for Multi‑Account Users Context You ran an experiment on notification delivery to users who often maintain...

Behavioral & Leadership
1
0
30 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist

Design Messenger spam experiment with clustering

Experiment Design: Spam-Detection Algorithm for Messenger You are evaluating a new spam-detection algorithm that routes suspected spam into a separate...

Analytics & Experimentation
3
0
43 people solved
Oct 13, 2025
Upstart logo
Upstart
Easy
Data Scientist Locked

Determine distribution of aX+b when X~N(0,1)

This question evaluates understanding of affine transformations of the normal distribution, moment calculation, and probability density manipulation, ...

Statistics & Math
8
0
60 people solved
Oct 13, 2025
Figma logo
Figma
Medium
Data ScientistSenior+

Deliver a crisp self-introduction

90-Second Self-Introduction: Senior Data Scientist (Figma) Context You are preparing for an HR screen (behavioral/leadership) for a Senior Data Scient...

Behavioral & Leadership
6
0
89 people solved
Oct 13, 2025