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 20 results
Role
Thumbtack logo
Thumbtack
Medium
Data Scientist

Estimate Two Conditional Win Probabilities by Simulation

Estimate Two Conditional Win Probabilities by Simulation You are given a game with three closed doors, labeled 0, 1, and 2. Behind exactly one door is...

Coding & Algorithms
0
0
5 people solved
Jan 9, 2026
Oracle logo
Oracle
Medium
Data Scientist

Count Interior Islands After Flooding

You are given an m x n binary grid representing land and water. - 1 = land - 0 = water An island is a maximal group of land cells connected 4-directio...

Coding & Algorithms
2
0
28 people solved
Jan 9, 2026
Applied logo
Applied
Medium
Software Engineer Locked

Parse a protobuf-like schema and answer queries

This question evaluates proficiency in parsing grammar-like schemas, scope-based name resolution for nested types, symbol-table construction, and desi...

Coding & Algorithms
2
0
22 people solved
Jan 8, 2026
Whatnot logo
Whatnot
Hard
Software Engineer

Build User Journey Path Summary

Implement a function build_summary(logs) -> str that summarizes user journeys as a trie-like path tree. You are given a list of action logs. Each log ...

Coding & Algorithms
1
0
17 people solved
Jan 8, 2026
Uber logo
Uber
Hard
Software Engineer Locked

Solve jump maximization and palindromic path queries

This pair of problems evaluates algorithmic problem-solving skills: the first assesses array-based path optimization and stateful score maximization u...

Coding & Algorithms
9
0
85 people solved
Jan 8, 2026
Bytedance logo
Bytedance
Medium
Machine Learning Engineer

Find Highest Product Segment

Given an integer array nums, find the maximum product obtainable from any non-empty contiguous segment. A contiguous segment must contain adjacent ele...

Coding & Algorithms
1
0
26 people solved
Jan 7, 2026
SoFi logo
SoFi
Easy
Software Engineer Locked

Count numbers with same popcount up to all-ones bound

This question evaluates skill in bit manipulation and combinatorial counting over binary representations in the Coding & Algorithms domain, specifical...

Coding & Algorithms
18
0
127 people solved
Jan 7, 2026
Sig logo
Sig
Medium
Software Engineer

Solve theatre seating and ticker extraction

Implement the following two coding tasks. 1. Allocate groups in a movie theater You are given an integer n representing the number of rows in a movie ...

Coding & Algorithms
4
0
73 people solved
Jan 6, 2026
Google logo
Google
Medium
Software EngineerIntern Locked

Find shortest subarray with at least k distinct

This question evaluates proficiency in array manipulation, frequency counting, and efficient tracking of distinct values within contiguous subarrays, ...

Coding & Algorithms
5
0
70 people solved
Jan 6, 2026
Meta logo
Meta
Hard
Software Engineer Locked

Count three-digit numbers with distinct digits

This question evaluates a candidate's understanding of digit manipulation, basic combinatorics, and implementation of value-range constraints in codin...

Coding & Algorithms
2
0
42 people solved
Jan 6, 2026
Expedia logo
Expedia
Hard
Software Engineer

Solve three interview coding problems

This interview report described three coding tasks: 1. Generate a run-length spoken sequence Start with s1 = "1". To build the next term, read th...

Coding & Algorithms
5
0
75 people solved
Jan 6, 2026
NVIDIA logo
NVIDIA
Medium
Software EngineerSenior+ Locked

Compute top-N items from log stream

This question evaluates the ability to aggregate frequencies and compute top-N results from logs, covering competencies in frequency counting, top-k a...

Coding & Algorithms
2
0
33 people solved
Jan 6, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Find minimum total range-increment to sort

This question evaluates algorithmic problem-solving skills in array manipulation and optimization, focusing on reasoning about range-increment operati...

Coding & Algorithms
6
0
51 people solved
Jan 6, 2026
Startups.Com logo
Startups.Com
Medium
Machine Learning Engineer Locked

Design NL-to-SQL performance optimization assistant

This question evaluates a candidate's ability to design a secure, reliable, and cost-conscious natural-language-to-SQL performance diagnostic system t...

System Design
4
0
37 people solved
Jan 6, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Validate a JSON-like string

This question evaluates parsing and string-processing skills, focusing on structural validation of JSON-like text including matching and nesting of br...

Coding & Algorithms
10
0
134 people solved
Jan 6, 2026
Google logo
Google
Medium
Software EngineerIntern Locked

Design a logger that returns top-K messages

This question evaluates skills in designing in-memory data structures and algorithms for frequency counting and interval querying, including extractin...

Coding & Algorithms
8
0
76 people solved
Jan 6, 2026
TikTok logo
TikTok
Hard
Software EngineerIntern Locked

Solve grid shortest-path and tree DP

This question pair evaluates proficiency in fundamental algorithmic techniques: finding shortest paths in a grid via breadth-first search and applying...

Coding & Algorithms
3
0
34 people solved
Jan 6, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Compute balances, rejections, and platform reserve

This question evaluates transactional state management, time-ordered stream processing, balance reconciliation, handling of rejected transactions, and...

Coding & Algorithms
3
0
36 people solved
Jan 6, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Implement an in-memory file system

This question evaluates a candidate's ability to design and implement in-memory file system data structures and APIs, covering hierarchical directory ...

Coding & Algorithms
13
0
159 people solved
Jan 6, 2026
Faire logo
Faire
Hard
Software Engineer Locked

Format text into fixed-width justified lines

This question evaluates string manipulation, greedy packing, and precise space-distribution skills, assessing competency in algorithmic implementation...

Coding & Algorithms
8
0
68 people solved
Jan 6, 2026