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
DoorDash logo
DoorDash
Easy
Data Scientist Locked

Design a Top Dasher experiment with interference

Practice designing an interference-aware experiment for a Top Dasher incentive program in a delivery marketplace. The solution covers goal setting, zo...

Analytics & Experimentation
10
0
80 people solved
Jul 1, 2025
TikTok logo
TikTok
Medium
Data Scientist

Tiktok DS Interview Questions

Scenario: You are provided with two tables: minute_streamed and minute_viewed. The minute_streamed table records each minute of streaming activity, wh...

Data Manipulation (SQL/Python)
11
1
83 people solved
Jun 26, 2025
xAI logo
xAI
Easy
Software Engineer

In-Memory Key-Value Database with Nested Transactions

In-Memory Key-Value Database with Nested Transactions Implement an in-memory key-value database that processes a sequence of commands and supports nes...

Coding & Algorithms
1
0
8 people solved
Jun 7, 2025
xAI logo
xAI
Hard
Machine Learning Engineer

Constant-Time Insert, Remove, and Uniform Random Sampling

A data-sampling service maintains a dynamically changing pool of integer example IDs. Examples are continuously added and retired, and the service mus...

Coding & Algorithms
0
0
4 people solved
May 30, 2025
Two Sigma logo
Two Sigma
Easy
Data Scientist

Fill Missing Time-Series Values with Linear Interpolation (Duplicate Timestamps Allowed)

Fill Missing Time-Series Values with Linear Interpolation (Duplicate Timestamps Allowed) You are given readings from a single sensor as a list of reco...

Coding & Algorithms
0
0
5 people solved
May 13, 2025
Google logo
Google
Hard
Software Engineer

Delete a Node From a Search Tree

Given the root of a binary search tree and an integer key, delete the node whose value equals key if it exists. Return the possibly new root while pre...

Coding & Algorithms
7
0
46 people solved
Apr 29, 2025
LinkedIn logo
LinkedIn
Medium
Data Scientist

[SQL] Job Ad Metrics with Applicant Filter

Job Ad Metrics Analysis Task Table Structure Table: job_activity job_id INT candidate_id INT activity_type VARCHAR -- can be 'view' or 'apply' Requi...

Data Manipulation (SQL/Python)
11
0
44 people solved
Apr 23, 2025
Pinterest logo
Pinterest
Medium
Machine Learning Engineer Locked

Solve prefix, array, and string problems

This set of problems evaluates proficiency in string and array algorithm design—covering prefix search, subsequence matching, and maximal-area computa...

Coding & Algorithms
2
0
18 people solved
Apr 9, 2025
Amazon logo
Amazon
Medium
Software EngineerIntern

Find Most Frequent Values

Given an integer array nums and an integer k, return the k distinct values that occur most frequently in nums. The result may be returned in any order...

Coding & Algorithms
1
0
14 people solved
Mar 18, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Solve a Three-Roll Optimal Stopping Game

Solve a Three-Roll Optimal Stopping Game A fair six-sided die may be rolled at most three times. After each of the first two rolls, stop and receive t...

Statistics & Math
0
0
1 people solved
Feb 26, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Price a Sequential Four-Box Search Game

Price a Sequential Four-Box Search Game Four boxes contain one \$100 prize. Each opening costs the same fee x; you choose an unopened box and may stop...

Statistics & Math
0
0
1 people solved
Feb 26, 2025
Citi logo
Citi
Easy
Data ScientistSenior+ Locked

Design experiment and analyze volume drop scenario

Design an activation experiment for first-trade rate and investigate a retail trading volume drop despite higher BTC volatility. The solution covers A...

Analytics & Experimentation
2
0
26 people solved
Feb 6, 2025
Citi logo
Citi
Easy
Data ScientistSenior+

Write SQL for 30-day activity and D7 retention

You are given two tables. Table: trades - user_id (BIGINT) - trade_time (TIMESTAMP) — timestamp of the trade - volume (NUMERIC) - asset (TEXT) Table: ...

Data Manipulation (SQL/Python)
7
0
50 people solved
Feb 6, 2025
Google logo
Google
Medium
Data Scientist

Implement sampling and subarray scan

A coding interview included the following algorithm questions: 1. You are given access to a function rand01() that returns an independent sample from ...

Coding & Algorithms
4
0
56 people solved
Feb 5, 2025
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Implement IPv4 and CIDR iterators

This question evaluates understanding of IPv4 addressing and CIDR notation, along with competency in binary/bitwise arithmetic, iterator construction,...

Coding & Algorithms
12
0
129 people solved
Jan 10, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Find the Expected Number of Record Maxima

A permutation of the distinct values 1 through 100 is revealed from left to right. Replace the current maximum whenever the revealed value is strictly...

Statistics & Math
0
0
1 people solved
Jan 5, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Update Box Probabilities After Drawing Red Balls

Three boxes are equally likely to be selected: - Box A contains two red balls. - Box B contains one red and one blue ball. - Box C contains two blue b...

Statistics & Math
0
0
1 people solved
Jan 5, 2025
Worldquant logo
Worldquant
Medium
Data Scientist

Derive the Long-Run Sex Ratio Under a Stopping Rule

Assume each child is independently equally likely to be a girl or a boy. Every family continues having children until its first boy, then stops. For a...

Statistics & Math
0
0
1 people solved
Jan 5, 2025
Google logo
Google
Easy
Data Scientist

Count super-streak segments in an event stream

You are given a time-ordered sequence of events. Each event has: - type, a string or integer event type. - ts, an integer timestamp in milliseconds or...

Coding & Algorithms
12
0
92 people solved
Jan 2, 2025
Jane Street logo
Jane Street
Hard
Software Engineer

Reach a Target Using Each Number At Most Once

Reach a Target Using Each Number At Most Once You are given an array of integers nums and an integer target. Decide whether you can build an arithmeti...

Coding & Algorithms
1
0
11 people solved
Sep 14, 2022