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
Airbnb logo
Airbnb
Hard
Software Engineer

Design a Connect-Four-like board game

Design an object-oriented model for a turn-based, grid-based “drop token” board game similar to Connect Four. Game rules (define these precisely in yo...

Software Engineering Fundamentals
18
0
121 people solved
Jan 19, 2026
Gofundme logo
Gofundme
Easy
Software Engineer Locked

Explain CSS specificity and selector precedence

This question evaluates a candidate's understanding of CSS specificity and selector precedence, focusing on how the browser prioritizes competing styl...

Software Engineering Fundamentals
3
0
24 people solved
Jan 19, 2026
Waymo logo
Waymo
Medium
Software Engineer

Find Largest Adjacent Sorted Difference

Given an unsorted array of integers nums, compute the largest difference between two consecutive elements after the array is sorted in ascending order...

Coding & Algorithms
8
1
57 people solved
Apr 12, 2026
Harvey logo
Harvey
Medium
Software Engineer

Implement a Hierarchical File System

Implement an in-memory hierarchical file system. Create a class FileSystem with the following methods: - FileSystem() initializes an empty file system...

Coding & Algorithms
0
0
13 people solved
Apr 12, 2026
Sealth logo
Sealth
Easy
Machine Learning Engineer Locked

Represent k-means as an MLP

This question evaluates understanding of how the nearest-centroid step of k-means can be expressed as a fully connected neural network layer with acti...

Machine Learning
9
0
61 people solved
Apr 12, 2026
Sealth logo
Sealth
Easy
Machine Learning Engineer Locked

Implement one-cluster k-means

This question evaluates understanding of clustering algorithms and optimization of within-cluster squared error for the special case k = 1, along with...

Coding & Algorithms
2
0
31 people solved
Apr 12, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Implement an LRU Cache

This question evaluates competency in designing efficient stateful data structures, understanding cache eviction policies (least recently used), and m...

Coding & Algorithms
1
0
23 people solved
Apr 12, 2026
Molocoads logo
Molocoads
Hard
Software Engineer

Support Dynamic Range Sums

Implement a data structure over an integer array nums. Part 1: If the array never changes, support sumRange(left, right) that returns the sum of eleme...

Coding & Algorithms
2
0
39 people solved
Apr 12, 2026
LinkedIn logo
LinkedIn
Hard
Data Scientist

Design Experiments for Email Campaign & Messaging Update

Experiment Design for Concurrent Email Campaign and Messaging Feature Marketing will run an email campaign at the same time Product ships a new in-pro...

Analytics & Experimentation
71
0
250 people solved
Jul 12, 2025
LinkedIn logo
LinkedIn
Medium
Data Scientist

Identify Sales Professionals

Classifying Sales Professionals on LinkedIn You are building a machine-learning system that automatically classifies LinkedIn members who are likely t...

Analytics & Experimentation
19
0
60 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Design A/B Test for Subscription Price Increase Effectiveness

A/B Testing a Subscription Price Increase and Sign-up CTA A B2B SaaS company is considering two experiments: raising subscription prices and improving...

Analytics & Experimentation
71
0
158 people solved
Jul 12, 2025
LinkedIn logo
LinkedIn
Medium
Data Scientist

Resolve Conflicting A/B Test Results in Cities

A/B Test Paradox Across Two Cities You ran an A/B test in two geographies, City X and City Y. Within each city, variant A outperforms variant B. Howev...

Analytics & Experimentation
24
0
56 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Adjust YouTube Ad Scores Using Mixed-Effects Linear Regression

Adjusting YouTube Ad Scores with Mixed-effects Regression One hundred reviewers each rate the same 100 YouTube ads on a 1 to 10 scale. Some reviewers ...

Machine Learning
12
0
106 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Evaluate College Impact on Income: Address Bias and Validity

Evaluating College Impact on Income with Observational Data You have an observational, cross-sectional dataset of 1,000 adult Mountain View residents....

Analytics & Experimentation
24
0
77 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Generate Samples from Truncated Normal Distribution

Sampling from a Truncated Normal Distribution You draw from a normal distribution but only keep observations that are at least 1. Assume the original ...

Statistics & Math
24
0
79 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Data Scientist

Determine Probability of Both Children Being Boys

Conditional Probability: Two Children A family has two children. You learn that at least one of them is a boy. Answer the questions below and state yo...

Statistics & Math
22
0
58 people solved
Jul 12, 2025
Amazon logo
Amazon
Medium
Data Scientist

Assess Candidate's Alignment with Amazon Leadership Principles

Behavioral Interview: Amazon Leadership Principles for Data Scientists You are interviewing for a Data Scientist role where customer impact, ownership...

Behavioral & Leadership
65
0
57 people solved
Jul 12, 2025
TikTok logo
TikTok
Medium
Data Scientist

Align Conflicting Stakeholders for Successful Project Delivery

Behavioral Interview: Aligning Conflicting Stakeholders Cross-functional projects often require coordination between data scientists, engineers, produ...

Behavioral & Leadership
14
0
58 people solved
Jul 12, 2025
DoorDash logo
DoorDash
Hard
Data Scientist

Assess Success Criteria for Bike-Courier Delivery Launch

Assessing a Bike-Courier Delivery Launch DoorDash plans to launch a bike-courier delivery option and wants to assess whether, where, and how to roll i...

Analytics & Experimentation
79
0
162 people solved
Jul 12, 2025
Airbnb logo
Airbnb
Medium
Data Scientist

Influence Decisions Without Direct Authority: Strategies and Outcomes

Influence Decisions Without Direct Authority This behavioral prompt asks about influencing cross-functional decisions without formal authority in a da...

Behavioral & Leadership
15
0
113 people solved
Jul 12, 2025