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
Microsoft logo
Microsoft
Medium
Software Engineer

Implement a Tic-Tac-Toe game class

Problem Implement a class that supports playing an n × n Tic-Tac-Toe game. Requirements Create a class TicTacToe(n) with: - move(row, col, player) -> ...

Coding & Algorithms
6
0
69 people solved
Oct 14, 2025
Jane Street logo
Jane Street
Medium
Data Scientist

Solve queue switch and coin change puzzles

This entry contains two separate interview-style quantitative/algorithmic questions. --- 1. Queue switching decision problem You are standing in a sin...

Coding & Algorithms
17
0
149 people solved
Oct 14, 2025
Apple logo
Apple
Medium
Data Scientist

Remove shortest subarray to sort array

Given an integer array nums (length up to 2×10^5), return the shortest subarray [L,R] you can remove so that the remaining elements form a non‑decreas...

Coding & Algorithms
5
0
66 people solved
Oct 13, 2025
Amazon logo
Amazon
Hard
Data Scientist Locked

Design a robust traffic forecasting pipeline

This question evaluates a candidate's competency in end-to-end time-series forecasting pipeline design, covering data cleaning and missing-value handl...

Machine Learning
5
0
42 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Build and evaluate donation propensity model

You need a model to maximize expected net revenue from solicitations. Costs: online reach costs $1 per person; gala attendance costs $100 per attendee...

Machine Learning
5
0
69 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Describe resolving ambiguity under pressure

Tell me about a time you were given an ambiguous, calculation-heavy case and the interviewer or stakeholder kept pushing you to 'not go too far.' Desc...

Behavioral & Leadership
5
0
56 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Explain helping-others trade-offs with evidence

Describe a specific situation where you proactively helped others at work despite conflicting priorities. Include: a) your objective and stakeholders;...

Behavioral & Leadership
8
0
56 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Build a model to infer home vs office vs public

You must infer whether a Facebook session’s network context is home, office, or public venue to inform Portal targeting. Constraints: IPs may be share...

Machine Learning
2
0
43 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Compute sample size and test duration

You will run a two-arm A/B test on a signup funnel. Given: baseline conversion p0 = 4.0%; you care about detecting a 10% relative uplift (p1 = 4.4%); ...

Statistics & Math
10
3
67 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Size opportunity for new product line

An e-commerce site considers adding a "Home Office" product line. Before any A/B test, size the opportunity and recommend whether to proceed. Assumpti...

Analytics & Experimentation
6
0
53 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist Locked

Evaluate and prioritize Facebook Groups

This question evaluates product analytics, experimentation design, causal inference, KPI hierarchy and metric-definition skills, and quantitative prio...

Analytics & Experimentation
3
0
34 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Run a clean A/B test for recommendations

You must run an A/B test to evaluate the new hashtag recommender starting on 2025‑09‑01. 1) Define the randomization unit (user/session/impression) an...

Analytics & Experimentation
3
0
39 people solved
Oct 13, 2025
Amazon logo
Amazon
Hard
Data Scientist

Prioritize a new warehouse proposal with data

Build vs. Lease vs. Defer: New Fulfillment Center Decision Context You are evaluating whether to open a new fulfillment center (FC) to improve deliver...

Analytics & Experimentation
3
0
69 people solved
Oct 13, 2025
OneMain Financial logo
OneMain Financial
Medium
Data Scientist Locked

Maximize credit card portfolio profit

This question evaluates competence in credit-risk quantification, portfolio profitability analysis, approval decisioning and experiment design for a D...

Analytics & Experimentation
9
0
98 people solved
Oct 13, 2025
OneMain Financial logo
OneMain Financial
Hard
Data Scientist

Select and tune XGBoost hyperparameters

Binary Classification Under Compute and Imbalance Constraints Context You are training an XGBoost model for a binary classification problem with: - 1,...

Machine Learning
6
0
58 people solved
Oct 13, 2025
Block (Square) logo
Block (Square)
Medium
Data Scientist

Write left-join queries with tricky filters

Assume 'today' = '2025-09-01'. Do NOT use window functions (e.g., RANK). Use LEFT JOIN, COUNT(DISTINCT), GROUP BY, HAVING as appropriate. Schema: - us...

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

Compare Instagram vs. Facebook using causal experiments

Compare Instagram and Facebook for consumer time and engagement: a) Define a single-objective OEC that captures healthy cross-app ecosystem value with...

Analytics & Experimentation
3
0
39 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Model comment count distribution and validate assumptions

You observe daily comment counts per post on a large social app are highly skewed with many zeros. a) Choose an appropriate discrete model among Poiss...

Statistics & Math
4
0
69 people solved
Oct 13, 2025
Apple logo
Apple
Medium
Data Scientist

Detect sessions and gaps using SQL LEAD

Write a single ANSI-SQL query that (a) assigns per-user session_ids when the gap between consecutive events exceeds 30 minutes, (b) computes session_s...

Data Manipulation (SQL/Python)
26
0
200 people solved
Oct 13, 2025
Zoox logo
Zoox
Medium
Data Scientist

Describe resolving a high-stakes research disagreement

Describe a time you and a stakeholder strongly disagreed on the framing or interpretation of a technical problem (e.g., a probability/statistics assum...

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