Tech Interview Questions

Practice 9,031+ 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.0k Questions 486 Companies08.11.2026
Showing 20 results
Role
Anthropic logo
Anthropic
Hard
Software Engineer

Describe failure impact and resolve cross-functional conflict

You are in a behavioral interview. Answer the following prompts using a structured method (e.g., STAR or CARL). Provide specific details, metrics wher...

Behavioral & Leadership
14
0
246 people solved
Oct 9, 2025
Waymo logo
Waymo
Easy
Data Scientist

Implement K-means and handle train-inference mismatch

Part A — K-means (implementation + concepts) You are given a dataset \(X \in \mathbb{R}^{n \times d}\) and an integer \(k\). 1. Explain K-means: what ...

Machine Learning
22
0
307 people solved
Dec 6, 2025
DoorDash logo
DoorDash
Medium
Machine Learning Engineer

How would you prevent wrong items in deliveries?

Behavioral / Product-Process Scenario You work on a food delivery platform. Customers sometimes receive the wrong items (restaurant packed incorrectly...

Behavioral & Leadership
5
0
97 people solved
Oct 17, 2025
Instacart logo
Instacart
Hard
Machine Learning Engineer Locked

Explain Core ML Concepts

This question evaluates understanding of core supervised learning concepts—comparing linear and logistic regression, interpreting the bias–variance tr...

Machine Learning
8
0
89 people solved
Feb 10, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Explain CPU-Bound vs I/O-Bound Work

Define CPU-bound and I/O-bound workloads. Then compare how multithreading, asynchronous I/O, and multiprocessing behave for each type of workload, esp...

Software Engineering Fundamentals
24
0
247 people solved
Jan 6, 2026
Walmart Labs logo
Walmart Labs
Medium
Software Engineer Locked

Design Spring Boot for high availability and background work

This question evaluates a candidate's competency in designing highly available, load-balanced Spring Boot applications and architecting resilient back...

System Design
10
0
88 people solved
Jan 6, 2026
Palantir logo
Palantir
Medium
Software Engineer

Handle value conflicts and disagreeing with leadership

Behavioral / Values prompts Answer the following with specific examples (use the STAR method): 1. Have you ever made a decision that was “politically ...

Behavioral & Leadership
21
0
296 people solved
Jan 6, 2026
Microsoft logo
Microsoft
Easy
Data Scientist Locked

Use confusion matrix to choose model metric

This question evaluates understanding of confusion matrix components, mapping Type I/Type II errors to false positives/negatives, selection and interp...

Statistics & Math
13
0
93 people solved
Feb 9, 2026
Rogo logo
Rogo
Medium
Machine Learning Engineer

Infer the Smallest Valid Character Order from Sorted Password Hints

Infer the Smallest Valid Character Order from Sorted Password Hints You are given password hints already sorted according to an unknown alphabet. Infe...

Coding & Algorithms
0
0
2 people solved
Jun 24, 2026
Whatnot logo
Whatnot
Medium
Software Engineer Locked

Content Safety Filter

This coding question tests string parsing, tokenization logic, and pattern-matching algorithm design in a practical content moderation context. It eva...

Coding & Algorithms
1
0
12 people solved
Jun 24, 2026
xAI logo
xAI
Medium
Software Engineer

Fix race condition in concurrent deposit

Concurrent bank account debugging (thread safety) You are given a simple BankAccount object that is used concurrently from multiple threads. Two depos...

Software Engineering Fundamentals
19
1
198 people solved
Dec 15, 2025
Point72 logo
Point72
Medium
Machine Learning Engineer

Explain Transformer Encoder and Decoder Behavior

Answer the following Transformer fundamentals questions in a machine learning interview: 1. What are the main differences between a Transformer encode...

Machine Learning
5
0
51 people solved
Mar 6, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Explain deadlock cases and how to prevent them

You are asked in an interview to discuss deadlocks in concurrent programming. 1) What is a deadlock? 2) What conditions must hold for a deadlock to be...

Software Engineering Fundamentals
5
0
78 people solved
Feb 9, 2026
Apple logo
Apple
Medium
Software EngineerIntern

Describe your most memorable bug and fix

Tell me about the most memorable/impactful bug you encountered in a project. Include: - What the system/project was and your role - How the bug manife...

Behavioral & Leadership
7
0
100 people solved
Feb 9, 2026
Microsoft logo
Microsoft
Medium
Machine Learning EngineerIntern

Compute precision/recall from a flaky top-k API

You have 10 image files. Each file has a ground-truth label indicating whether it contains a dog. You can call an API like searchDogs(k) which is inte...

Software Engineering Fundamentals
7
0
78 people solved
Feb 9, 2026
Qualcomm logo
Qualcomm
Medium
Software Engineer

Compute the Diameter of an Undirected Tree

Compute the Diameter of an Undirected Tree You are given an undirected tree with nodes numbered from 0 through n - 1. The diameter is the number of ed...

Coding & Algorithms
2
0
18 people solved
Apr 16, 2026
Uber logo
Uber
Medium
Software EngineerSenior+

Describe a Trade-off Design Change

Tell me about a time when you changed a system design because of an important trade-off. Explain the original design, the competing goals or constrain...

Behavioral & Leadership
10
0
178 people solved
Apr 16, 2026
Confluent logo
Confluent
Medium
Software Engineer Locked

Design RSS Feed and Temporary Mail

This question evaluates skills in large-scale system design, covering API design, ingestion and normalization pipelines, caching and freshness trade-o...

System Design
7
0
104 people solved
Jan 28, 2026
Instacart logo
Instacart
Medium
Software Engineer

Design an inventory management system

Design an inventory management system for an e-commerce business. The system must support: - Updating stock when inventory is received, adjusted, or s...

System Design
14
0
204 people solved
Jan 28, 2026
Shopify logo
Shopify
Medium
Machine Learning Engineer

Design Personalized Product Feeds

Design an ML system for personalized product feeds in an e-commerce application. For each user request, the system should return a ranked feed of prod...

ML System Design
8
0
92 people solved
Apr 1, 2026