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

Design system to detect privacy-leak records

You are given a very large database that contains user data (both structured fields and unstructured text such as logs, messages, and documents). The ...

ML System Design
4
0
50 people solved
Dec 8, 2025
TikTok logo
TikTok
Medium
Software Engineer

Explain DPO and construct its training data

You are working on a project to fine-tune a large language model (LLM) using Direct Preference Optimization (DPO). Answer the following: 1. Conceptual...

Machine Learning
4
0
51 people solved
Dec 8, 2025
Discord logo
Discord
Hard
Software Engineer

Explain C++ alignment and ABI stability

You are interviewing for a senior C++ / systems role. The interviewer asks two low-level fundamentals questions: 1. C++ memory alignment and padding ...

Software Engineering Fundamentals
9
0
69 people solved
Dec 8, 2025
Meta logo
Meta
Medium
Software Engineer

Explain key ML metrics and techniques

You are asked a set of short conceptual machine learning questions. 1. Confusion matrix and metrics For a binary classification problem: - Def...

Machine Learning
7
0
68 people solved
Dec 8, 2025
Axon logo
Axon
Medium
Software Engineer Locked

Design body camera checkout system

This question evaluates competency in in-memory data structure design, algorithmic complexity (achieving O(1) average operations), and randomized reso...

Coding & Algorithms
5
0
48 people solved
Mar 16, 2026
Meta logo
Meta
Medium
Data Scientist Locked

How to test account ranking change

This question evaluates a data scientist's competency in causal inference, experimentation design, metrics selection, and observational analysis using...

Analytics & Experimentation
4
1
68 people solved
Mar 16, 2026
Meta logo
Meta
Easy
Data Scientist

Describe a challenging project and work-style conflicts

Question This is the Meta Data Scientist onsite behavioral & leadership round. The anchor prompt is to describe your most challenging recent project e...

Behavioral & Leadership
16
0
101 people solved
Dec 6, 2025
Old logo
Old
Hard
Data ScientistNew Grad

Solve Exact Probability and Expected-Value Exercises

Solve Exact Probability and Expected-Value Exercises Work through the following short quantitative problems. Give exact simplified fractions when the ...

Software Engineering Fundamentals
1
0
11 people solved
May 16, 2024
Pinduoduo logo
Pinduoduo
Easy
Software Engineer Locked

Determine Straight Flush

This question evaluates competency in algorithmic pattern detection and data-structure manipulation applied to domain-specific representations, focusi...

Coding & Algorithms
3
0
25 people solved
Mar 15, 2026
Snapchat logo
Snapchat
Medium
Machine Learning Engineer

Explain Core ML Concepts

Answer these machine-learning fundamentals questions: 1. Explain the difference between batch normalization and layer normalization, including how eac...

Machine Learning
2
0
44 people solved
Jun 28, 2025
Bytedance logo
Bytedance
Medium
Data ScientistIntern

Count Same-Day Registered Posters

You are given two tables: `text users - user_id: unique identifier for a user - registered_at: timestamp when the user registered posts - post_id: uni...

Coding & Algorithms
0
0
6 people solved
Mar 14, 2026
PayPal logo
PayPal
Medium
Data ScientistSenior+ Locked

Why does the CLT matter?

The question evaluates a candidate's understanding of the Central Limit Theorem and related competencies in probabilistic reasoning, estimation, and c...

Statistics & Math
5
0
46 people solved
Mar 14, 2026
Meta logo
Meta
Medium
Data Scientist Locked

Count Recent High-Volume Call Users

This question evaluates SQL data manipulation and analytical querying skills, including time-window filtering, joins between user and call tables, rol...

Data Manipulation (SQL/Python)
24
1
156 people solved
Mar 14, 2026
Sealth logo
Sealth
Medium
Software Engineer Locked

Simulate Threshold Grid Infection

This question evaluates understanding of discrete grid-based simulations and local state-transition rules, focusing on modeling infection spread, neig...

Coding & Algorithms
3
0
27 people solved
Mar 13, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Implement a Snapshot Set Iterator

Implement a data structure SnapshotSet<T> with the following interface: `java interface SnapshotSet<T> { void add(T e); void remove(T e); ...

Coding & Algorithms
33
0
274 people solved
Mar 13, 2026
Hudson logo
Hudson
Hard
Software EngineerNew Grad

Implement Order Modification Feature

You are given an existing C++ trading system with a client/server architecture. The current system already supports two request types: - AddOrder(orde...

Coding & Algorithms
7
0
64 people solved
Mar 13, 2026
Meta logo
Meta
Easy
Data Scientist

Compute maximum score using up to 3 categories

Problem A library runs a summer reading program. Each book a student reads earns a certain number of points, and each book belongs to a category. A st...

Coding & Algorithms
5
0
72 people solved
Dec 2, 2025
xAI logo
xAI
Medium
Software Engineer Locked

Design backend to score and classify tweets

This question evaluates backend system design skills including data modeling and ingestion, integration with external LLM-style inference APIs, worker...

System Design
15
0
130 people solved
Dec 1, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement map serialization and deserialization

You are given an in-memory map (dictionary) from strings to strings. Implement two functions: - string serialize(map<string, string> m) - map<string, ...

Coding & Algorithms
78
0
616 people solved
Dec 1, 2025
Meta logo
Meta
Medium
Software Engineer Locked

Design a fitness tracking app

This question evaluates a candidate's competency in designing end-to-end backend architectures, specifying core APIs, modeling workout and geospatial ...

System Design
7
0
61 people solved
Mar 12, 2026