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
Amazon logo
Amazon
Medium
Data Scientist

Implement a high-throughput web crawler safely

Design and code (pseudocode acceptable) a multi-threaded web crawler that favors breadth-first discovery while continuously running analysis tasks on ...

Coding & Algorithms
11
0
139 people solved
Oct 13, 2025
Netflix logo
Netflix
Hard
Data Scientist

Design a robust conversion propensity model

Daily Notification Propensity Model (Top-20% Targeting) Context You need to score users once per day with the probability they will make a purchase wi...

Machine Learning
15
0
118 people solved
Oct 13, 2025
Citadel logo
Citadel
Medium
Data Scientist

Compute P(third Ace | Ace in first two)

Conditional probability with cards drawn without replacement Problem You draw three cards without replacement from a standard 52‑card deck (4 Aces). G...

Statistics & Math
13
0
95 people solved
Oct 13, 2025
Pinterest logo
Pinterest
Hard
Data Scientist

Decide if ad load is optimized

Pinterest Home Feed Ad Load Optimization You are asked to design an analysis and experiment to determine whether the current home-feed ad load (ads pe...

Analytics & Experimentation
25
0
158 people solved
Oct 13, 2025
Shopify logo
Shopify
Easy
Data Scientist

Infer and justify non-trivial sequence patterns

Pattern Recognition: Next Terms and Missing Value Identify the rule governing each sequence or row and compute the missing value(s). Justify each answ...

Coding & Algorithms
15
1
126 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Compute partnership profit and break-even population

Co‑marketing Partnership Economics — 12‑Month Evaluation Setup - Issuer C1 earns 1% of a cardholder’s total card spending (interchange-like revenue). ...

Analytics & Experimentation
10
0
73 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Fix failing tests and refactor code

You're given a small Python repo. After creating and activating a clean virtual environment, installing requirements, and running "pytest -q", two tes...

Coding & Algorithms
11
0
112 people solved
Oct 13, 2025
Pinterest logo
Pinterest
Hard
Data Scientist

Demonstrate leadership with concrete STAR examples

Behavioral & Leadership (Onsite) — STAR Examples With Metrics Provide succinct STAR-format examples (Situation, Task, Action, Result), with specific m...

Behavioral & Leadership
12
0
106 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist

Calculate valid daily usage with gap constraints

Write Standard SQL to compute, for a given date (use 2025-09-01), each user's total valid usage minutes. Schema and rules: Schema (timestamps are UTC)...

Data Manipulation (SQL/Python)
12
0
94 people solved
Oct 13, 2025
Google logo
Google
Hard
Data Scientist

Diagnose and reverse an adoption-rate decline

Problem: Investigating a 7pp Drop in Google Meet Enterprise Adoption Rate Context Over the last 4 calendar weeks, enterprise adoption rate has fallen ...

Analytics & Experimentation
4
0
85 people solved
Oct 13, 2025
TCS logo
TCS
Hard
Data Scientist

Compare Tableau blending, joins, and filters

Tableau Integration Exercise: Joins vs Blends, Filters, and Order of Operations Data You have two sources. Primary (Orders) - Columns: OrderID, State,...

Analytics & Experimentation
11
0
93 people solved
Oct 13, 2025
Shopify logo
Shopify
Medium
Software Engineer AI

Implement a Constant-Time LRU Cache

Implement a Constant-Time LRU Cache Implement a fixed-capacity least-recently-used cache. The captured source identifies an LRU cache coding problem b...

Coding & Algorithms
3
0
21 people solved
Apr 28, 2026
Google logo
Google
Medium
Software Engineer

Return the Most Frequent Values in an Array

Given a non-empty integer array, return the k values that appear most frequently. Ties are broken by smaller value first. Implement: `python def top_k...

Coding & Algorithms
2
1
16 people solved
Apr 28, 2026
Amazon logo
Amazon
Medium
Software Engineer

Find Valid IP Addresses in Files

You are given an absolute or relative path to a directory on the local file system. Write a program that recursively traverses every subdirectory unde...

Coding & Algorithms
37
0
292 people solved
Apr 28, 2026
Spotify logo
Spotify
Medium
Machine Learning Engineer

Design Podcast Recap Generation

Design a production system that generates short podcast recaps for newly published episodes. Assume the system should ingest episode audio and metadat...

ML System Design
17
0
116 people solved
Mar 4, 2026
Spotify logo
Spotify
Medium
Machine Learning Engineer

Compare Unsupervised Clustering Methods

Explain several unsupervised clustering approaches and when you would use each one. At a minimum, compare centroid-based clustering, hierarchical clus...

Machine Learning
7
0
97 people solved
Mar 4, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Fix a Corrupted Bootloader Instruction

This question evaluates the ability to simulate instruction-level program execution, reason about control flow and mutable program state (instruction ...

Coding & Algorithms
9
0
51 people solved
May 19, 2026
Decagon logo
Decagon
Medium
Software Engineer

Count Complete Tic-Tac-Toe Game Sequences

Count Complete Tic-Tac-Toe Game Sequences Two players play on a standard 3 x 3 board. X moves first and the players alternate. A game ends immediately...

Coding & Algorithms
2
0
20 people solved
Jul 10, 2026
Amazon logo
Amazon
Hard
Software Engineer

Find a Maximum-Sum Window in a Sparse Array

Find a Maximum-Sum Window in a Sparse Array An integer array is represented by constant-value segments instead of individual elements. Each segment [s...

Coding & Algorithms
1
0
13 people solved
Jul 10, 2026
Newrelic logo
Newrelic
Hard
Software Engineer

Product of Array Except Self Without Division

Product of Array Except Self Without Division Given an integer array, return an array in which output[i] is the product of every input element except ...

Coding & Algorithms
0
0
12 people solved
Jul 10, 2026