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 480 Companies08.05.2026
Showing 11 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
79 people solved
Jul 1, 2025
Snapchat logo
Snapchat
Medium
Machine Learning Engineer

Find Shortest Clear Grid Path

Given an n x n binary grid, where 0 means open and 1 means blocked, return the length of the shortest clear path from the top-left cell to the bottom-...

Coding & Algorithms
3
0
34 people solved
Jun 28, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Find the Slowest Function from Profiler Events

You are given a time-ordered profiler event log for a single-threaded program. Each event is one of: - START functionName timestamp: execution enters ...

Coding & Algorithms
1
0
14 people solved
Jun 17, 2025
xAI logo
xAI
Easy
Software Engineer

Design a Fixed-Capacity Least-Recently-Used Cache

Design a Fixed-Capacity Least-Recently-Used Cache Design and implement a cache with a fixed maximum capacity that evicts the least recently used entry...

Coding & Algorithms
0
0
6 people solved
Jun 7, 2025
OpenAI logo
OpenAI
Hard
Machine Learning Engineer

Implement in-memory database insert and delete operations

Design and implement a simple in-memory database (key-value store) that supports the following operations: - insert(key, value): Insert a key-value pa...

Coding & Algorithms
12
0
170 people solved
Apr 6, 2025
Google logo
Google
Medium
Data ScientistIntern Locked

Find Longest Increasing Continuous Subarray

Solve the longest increasing contiguous subarray problem in one pass. Includes Python code, edge cases, complexity, and a follow-up for returning the ...

Coding & Algorithms
4
0
43 people solved
Mar 27, 2025
Meta logo
Meta
Hard
Software Engineer

Compute tree right view and target-sum subarrays

You are given two separate programming tasks. --- Task 1: Right-side view of a binary tree You are given the root of a binary tree. Imagine standing o...

Coding & Algorithms
3
0
28 people solved
Mar 23, 2025
Glean logo
Glean
Medium
Machine Learning Engineer

Determine Reachability in Train Schedule

You are given a train schedule represented as a list of train routes. Each route is a list of station names, where the element at index t is the stati...

Coding & Algorithms
17
0
133 people solved
Feb 7, 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
128 people solved
Jan 10, 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
11
0
91 people solved
Jan 2, 2025
Jane Street logo
Jane Street
Medium
Data ScientistIntern

Streaming Equivalence of Two Trade Feeds with Per-Company Ordering

A market-data system receives trade events from two independent feeds. Each event is a pair (company, trade_id) identifying one trade for one company....

Coding & Algorithms
0
0
6 people solved
Oct 12, 2022