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

Find shortest path in an OOP maze

This question evaluates graph traversal and shortest-path reasoning within an object-oriented codebase, focusing on state representation, neighbor exp...

Coding & Algorithms
2
0
38 people solved
Jan 5, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Add two binary strings

This question evaluates proficiency with binary arithmetic and string manipulation, focusing on carry propagation and handling of very long inputs wit...

Coding & Algorithms
3
0
33 people solved
Jan 5, 2026
Google logo
Google
Easy
Software Engineer Locked

Compute minimum meeting rooms on circular day

This question evaluates a candidate's ability to reason about interval scheduling, circular time wrap-around, and resource allocation for overlapping ...

Coding & Algorithms
9
0
70 people solved
Jan 4, 2026
Google logo
Google
Medium
Software Engineer Locked

Generate all subsets (handle duplicates)

This question evaluates understanding of power-set generation and handling of duplicate elements, measuring competency in combinatorics, enumeration t...

Coding & Algorithms
8
0
66 people solved
Jan 4, 2026
Google logo
Google
Medium
Software Engineer Locked

Reconstruct original array from doubled shuffle

This question evaluates array manipulation, multiset/frequency reasoning, pairing logic, and careful handling of edge cases such as zeros and negative...

Coding & Algorithms
6
0
50 people solved
Jan 4, 2026
Meta logo
Meta
Medium
Data Scientist Locked

Define and estimate prevalence of unhealthy users

This question evaluates a data scientist's ability to operationalize an "unhealthy user" metric and compute its prevalence from session duration and d...

Analytics & Experimentation
3
0
37 people solved
Aug 17, 2025
Uber logo
Uber
Medium
Data Scientist Locked

Derive a CDF from a PDF

This question evaluates a candidate's understanding of the relationship between probability density functions and cumulative distribution functions, i...

Statistics & Math
5
0
42 people solved
Jan 3, 2026
Prodigy logo
Prodigy
Medium
Software Engineer Locked

Solve Three OA Coding Tasks

This set of problems evaluates string and array manipulation, spatial placement and packing logic, and parity-based subarray counting within the Codin...

Coding & Algorithms
1
0
22 people solved
Jan 3, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Compute shortest path in cyclic graph

This question evaluates understanding of graph algorithms and shortest-path computation in weighted directed graphs, including handling cycles, non-ne...

Coding & Algorithms
2
0
48 people solved
Jan 3, 2026
Worldquant logo
Worldquant
Medium
Data Scientist

Derive the Long-Run Sex Ratio Under a Stopping Rule

Assume each child is independently equally likely to be a girl or a boy. Every family continues having children until its first boy, then stops. For a...

Statistics & Math
0
0
4 people solved
Jan 5, 2025
Otter.Ai logo
Otter.Ai
Easy
Software Engineer AI Locked

Validate Password Against Multiple Rules

This question evaluates string processing and input validation skills, specifically character-class checks, frequency constraints, and enforcement of ...

Coding & Algorithms
2
0
29 people solved
Jan 2, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Compute root-to-leaf number sum

This question evaluates understanding of binary tree data structures and the competency to aggregate values along root-to-leaf paths, combining tree t...

Coding & Algorithms
5
0
38 people solved
Jan 2, 2026
PayPal logo
PayPal
Hard
Data Scientist

Design a fraud mitigation strategy under constraints

You are given a one-page case during a hiring manager round for a Fraud Data Scientist role. Current state: - The existing fraud model is performing p...

Analytics & Experimentation
9
0
76 people solved
Jan 2, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Refactor a chat message processing function

This question evaluates a candidate's ability to refactor and implement clear, maintainable message-processing logic—covering code organization, comma...

Coding & Algorithms
18
0
165 people solved
Jan 2, 2026
DoorDash logo
DoorDash
Medium
Software Engineer Locked

Design a 3-day online donation system

This question evaluates a candidate's ability in large-scale web system design, focusing on reliable payment integration, idempotency and consistency ...

System Design
9
0
123 people solved
Jan 2, 2026
DoorDash logo
DoorDash
Medium
Software Engineer Locked

Compute dasher pay with peak-hour query

This question evaluates a candidate's ability to perform time-interval arithmetic, prorated pay aggregation, robust handling of missing or inconsisten...

Coding & Algorithms
11
0
107 people solved
Jan 2, 2026
Snapchat logo
Snapchat
Hard
Software Engineer Locked

Check whether an integer is a power of two

This question evaluates proficiency in bit-level reasoning and integer arithmetic, specifically understanding binary representations and the propertie...

Coding & Algorithms
6
0
68 people solved
Jan 2, 2026
Samsara logo
Samsara
Medium
Machine Learning Engineer

Explain LLM training and evaluation

LLM Engineering: Training, Alignment, Hallucination Reduction, Evaluation, Monitoring, and Inference Optimization Context You are designing, aligning,...

Machine Learning
2
0
57 people solved
Aug 14, 2025
Meta logo
Meta
Hard
Software Engineer

Design a product notifications system

System Design: Push Notifications and In‑App Messaging Platform Context Design a notifications platform for a large consumer mobile app with millions ...

System Design
2
0
45 people solved
Aug 14, 2025
Meta logo
Meta
Medium
Software Engineer

Handle last-minute track change

Behavioral Question: Switching Tracks Mid-Interview Loop You are midway through a software engineering onsite when the interview focus changes (e.g., ...

Behavioral & Leadership
2
0
34 people solved
Aug 14, 2025