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
Uber logo
Uber
Medium
Data ScientistNew Grad Locked

Compute CDF from a PDF Function

This question evaluates a candidate's skills in numerical integration, applied numerical methods, and probability/statistics by requiring construction...

Coding & Algorithms
3
0
42 people solved
Apr 30, 2026
LinkedIn logo
LinkedIn
Medium
Data Scientist

Train with imbalanced sampled data

You are training a binary classifier on a very large dataset where the positive class is rare. Because the full dataset is too large to train on direc...

Machine Learning
8
0
64 people solved
Sep 5, 2025
Meta logo
Meta
Easy
Data Scientist Locked

Compare performance of FB vs IG Stories

This question evaluates a data scientist's competency in experimental design, causal inference, attribution modeling, metric selection, and decision-o...

Analytics & Experimentation
9
0
87 people solved
Feb 16, 2026
Tubitv logo
Tubitv
Medium
Software Engineer

Make Cache Fetch Thread-Safe and Single-Flight

Make Cache Fetch Thread-Safe and Single-Flight A TTL cache adds fetch(key, loader, ttl): return a valid cached value immediately; otherwise call the l...

Software Engineering Fundamentals
0
0
10 people solved
Feb 16, 2026
Meta logo
Meta
Easy
Data Scientist Locked

Compute this-year spend share of last-year whales

This question evaluates proficiency in data manipulation and analytics engineering, specifically SQL and Python skills for aggregations, joins, calend...

Data Manipulation (SQL/Python)
5
1
41 people solved
Feb 15, 2026
Snapchat logo
Snapchat
Medium
Machine Learning Engineer

Determine Whether Courses Can Be Completed

You are given an integer numCourses, representing courses labeled from 0 to numCourses - 1, and a list prerequisites. Each prerequisite is a pair [cou...

Coding & Algorithms
0
0
9 people solved
Apr 29, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern

Find a valid dependency order

You are given n tasks labeled from 0 to n - 1 and a list of dependency pairs dependencies, where each pair [a, b] means task b must be completed befor...

Coding & Algorithms
7
0
90 people solved
Feb 15, 2026
DoorDash logo
DoorDash
Hard
Software EngineerSenior+

Handle a payment-service incident with resource spikes

Handle a payment-service incident with resource spikes Incident Response and Resilience: Payment Integration Service Outage Context You own an interna...

Behavioral & Leadership
11
0
81 people solved
Jul 17, 2025
Optiver logo
Optiver
Medium
Data Scientist

Compute expected counters after color elimination

Compute expected counters after color elimination Problem You have a bag with 30 counters: 10 red, 10 yellow, and 10 blue. You draw counters uniformly...

Statistics & Math
4
0
72 people solved
Jul 17, 2025
Netflix logo
Netflix
Medium
Software Engineer

Demonstrate culture fit and deep dives

Demonstrate culture fit and deep dives Behavioral & Leadership Onsite: Culture Fit and Project Deep Dive (Software Engineer) Context You will be asses...

Behavioral & Leadership
17
0
190 people solved
Jul 17, 2025
Circle logo
Circle
Medium
Software Engineer

Trace and reduce redundant curl requests

Instrument and Optimize a Client's HTTP Requests for a Workflow You are pair-programming with the interviewer. You have a client (a script or applicat...

System Design
11
0
113 people solved
Jul 17, 2025
Shopify logo
Shopify
Medium
Software Engineer

Describe your most impactful project

Describe your most impactful project Past Project Deep Dive (Behavioral & Leadership) Provide a structured narrative of a project you led or significa...

Behavioral & Leadership
15
0
103 people solved
Jul 16, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Maximize profit from non-overlapping jobs

You are given up to N = 200,000 jobs; each job i has a start time s_i, end time e_i (s_i < e_i), and reward w_i. Select a subset of non-overlapping jo...

Coding & Algorithms
13
0
186 people solved
Jul 16, 2025
Trexquant logo
Trexquant
Medium
Software Engineer

Explain C++ default constructor generation rules

You are given a C++ class type T. 1. When will the compiler implicitly declare a default constructor for T? 2. When will the implicitly-declared defau...

Software Engineering Fundamentals
5
0
84 people solved
Sep 1, 2025
Clickup logo
Clickup
Medium
Software Engineer

Process document edit events

Implement a line-based document editor. You are given: - an initial document represented as an array of strings, where each string is one line - a lis...

Coding & Algorithms
3
0
59 people solved
Dec 15, 2025
Two Sigma logo
Two Sigma
Easy
Data Scientist Locked

Design a house-price prediction model

This question evaluates machine learning and data science competencies including regression model design, feature engineering, data-splitting and leak...

Machine Learning
9
0
68 people solved
Dec 15, 2025
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Design a Retrieval-Augmented Generation (RAG) system

This question evaluates a candidate's ability to design production-grade Retrieval-Augmented Generation systems, testing competencies in information r...

ML System Design
6
0
103 people solved
Dec 15, 2025
Moveworks logo
Moveworks
Medium
Software Engineer

Find a secret word via match feedback

Word Guessing Game (Mastermind-style) You are given a list of unique candidate words wordlist. All words have the same length L and contain only lower...

Coding & Algorithms
9
0
181 people solved
Dec 15, 2025
OpenAI logo
OpenAI
Hard
Software Engineer

Implement an in-memory SQL-like table

Problem Implement a simple in-memory database for one table. All values are strings. Each row is identified by a rowKey (string). Each row contains co...

Coding & Algorithms
64
0
1070 people solved
Dec 15, 2025
OpenAI logo
OpenAI
Hard
Software Engineer

Implement credit ledger with out-of-order timestamps

Problem You are implementing a GPU credit ledger that supports adding credits, charging credits, and querying balances. Requests can arrive in any tim...

Coding & Algorithms
140
1
950 people solved
Dec 15, 2025