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

Design a donations service with 3-day rolling totals

Design a service that ingests donations and serves rolling 3-day donation totals. Requirements Core features 1. Ingest donation events: - Each dona...

System Design
25
0
298 people solved
Dec 16, 2025
TikTok logo
TikTok
Hard
Software Engineer

Design and explain your project architecture

Question Pick one of your recent projects and walk an interviewer through its architecture end-to-end. Sketch a high-level diagram, then go deep on th...

System Design
6
0
110 people solved
Aug 13, 2025
Gusto logo
Gusto
Medium
Data Scientist

How do you test two variants vs control?

You ran an A/B/n experiment with 1 control and 2 treatment variants. The primary metric is conversion rate (each user either converts or not within th...

Analytics & Experimentation
10
0
95 people solved
Nov 30, 2025
Startups.Com logo
Startups.Com
Medium
Machine Learning Engineer

Debug and scale a PyTorch training loop

You are given a PyTorch training script for a CIFAR-10 image classifier that either: - does not converge (accuracy stays near random), or - becomes un...

Software Engineering Fundamentals
8
0
68 people solved
Mar 10, 2026
Startups.Com logo
Startups.Com
Medium
Machine Learning Engineer

Design efficient Transformer inference with KV cache

You are implementing autoregressive inference for a decoder-only Transformer. 1) Explain what the KV cache is, what tensors are cached per layer, and ...

ML System Design
12
0
130 people solved
Mar 10, 2026
Rippling logo
Rippling
Medium
Software Engineer

Why do you want to join this company?

In a hiring-manager interview, you are asked: - Walk me through your past experience and the impact you’ve had. - Why do you want to join this company...

Behavioral & Leadership
6
0
110 people solved
Jan 16, 2026
OpenAI logo
OpenAI
Hard
Machine Learning Engineer

Design a chatbot fallback for unknown questions

Scenario You run a ChatGPT-like assistant. Users sometimes ask questions the model cannot answer reliably (unknown/uncertain/needs up-to-date facts). ...

ML System Design
10
0
133 people solved
Dec 15, 2025
Sigmacomputing logo
Sigmacomputing
Medium
Software Engineer

Evaluate a Boolean Formula AST

Evaluate a Boolean Formula AST Evaluate a formula represented as a JSON-compatible abstract syntax tree. A formula can contain Boolean literals, integ...

Coding & Algorithms
2
0
14 people solved
May 12, 2026
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Implement a hierarchical file store

This question evaluates proficiency in modeling hierarchical file systems, path parsing and manipulation, managing mutable file contents, and analyzin...

Coding & Algorithms
4
0
20 people solved
May 12, 2026
Amazon logo
Amazon
Medium
Software Engineer

Solve two set and graph problems

Implement solutions for the following two data-structure / algorithm problems. --- Problem 1: Friend-purchase recommendations You are given three enti...

Coding & Algorithms
18
0
165 people solved
Oct 31, 2025
Rippling logo
Rippling
Hard
Software Engineer

Implement a minimal local HTTP server

Build a Minimal Local HTTP/1.1 Server (No Frameworks) Context You are asked to implement a minimal HTTP/1.1 server from scratch using only the standar...

System Design
22
0
204 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Design production-ready dedup service

System Design: Production-Ready File Deduplication Service Context Design a multi-tenant cloud service that stores files and achieves space savings vi...

System Design
25
0
442 people solved
Sep 6, 2025
OpenAI logo
OpenAI
Hard
Software Engineer

Design a multi-tenant Slack-like messenger

System Design: Multi‑Tenant B2B Team Messaging (Slack‑like) Design a multi‑tenant, enterprise‑grade team messaging platform similar to Slack. Function...

System Design
8
0
170 people solved
Sep 6, 2025
Google logo
Google
Medium
Machine Learning Engineer

Generate values by weighted probabilities

Weighted Random Sampling Generator (Streaming) You are given: - A list of distinct integers values. - A matching list of nonnegative probabilities (we...

Statistics & Math
13
0
116 people solved
Sep 6, 2025
Google logo
Google
Hard
Software Engineer

Design distributed log storage service

Design a Distributed Append-Only Log Storage System You are asked to design the storage layer of a distributed, partitioned, replicated append-only lo...

System Design
12
0
92 people solved
Sep 6, 2025
OpenAI logo
OpenAI
Hard
Software Engineer

Design a GPT chat UI with snapshots and sharing

System Design: End-to-End Web App for Interacting with a GPT-like Model Context You are designing a multi-tenant, browser-based SaaS application that ...

System Design
17
0
204 people solved
Sep 6, 2025
StackAdapt logo
StackAdapt
Easy
Software Engineer

Calculate conditional probabilities for coin tosses

Probability with Two Fair Coin Tosses You toss a fair coin twice. Let the coin be fair (P(H) = P(T) = 1/2) and the tosses independent. (a) Compute P(s...

Statistics & Math
13
0
142 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Design a scalable network I/O service

System Design: High-Volume Network I/O Backend (Files and Streaming) Context Design a backend service that supports millions of users uploading and do...

System Design
31
0
355 people solved
Sep 6, 2025
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Test easy–medium array/string tasks

For typical easy–medium array and string problems, list the most important edge cases you would test (e.g., empty input, single element, duplicates, a...

Coding & Algorithms
26
0
221 people solved
Sep 6, 2025
Snowflake logo
Snowflake
Medium
Software Engineer

Implement crawler and bracket validator

Implement two tasks: ( 1) Write a function crawl(start_urls, fetch, max_depth, domain_filter) that visits pages starting from the given seed URLs usin...

Coding & Algorithms
11
0
134 people solved
Sep 6, 2025