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

Compute 5-minute rolling average load

This question evaluates understanding of sliding-window aggregation and efficient data-structure design for time-series event streams, focusing on com...

Coding & Algorithms
8
0
159 people solved
Feb 3, 2026
Optiver logo
Optiver
Hard
Data Scientist Locked

Find missing numbers in sequences

This question evaluates sequence pattern recognition, numerical reasoning with integers and rational numbers, and the ability to infer recurrences or ...

Coding & Algorithms
14
0
275 people solved
Feb 3, 2026
Google logo
Google
Easy
Data Scientist Locked

Build next-word predictor with O(1) lookup

This question evaluates skills in language modeling, data structures, algorithmic optimization, and probabilistic sampling, within the Coding & Algori...

Coding & Algorithms
4
1
43 people solved
Feb 2, 2026
Reevo logo
Reevo
Medium
Software Engineer

Count all palindromic substrings

Given a string s, count how many substrings of s are palindromes. - A substring is a contiguous block of characters. - A palindrome reads the same for...

Coding & Algorithms
4
0
30 people solved
Feb 2, 2026
Reevo logo
Reevo
Medium
Software Engineer

Maximize weighted sum with disjoint adjacent swaps

You are given an integer array arr of length n (0-indexed). Define the weighted sum as: S = Σ_{i=0..n-1} arr[i] * (i + 1). You may perform any number ...

Coding & Algorithms
3
0
34 people solved
Feb 2, 2026
Reevo logo
Reevo
Medium
Software Engineer

Output lexicographically largest DFS traversal

You are given a graph with n nodes labeled 1..n and m edges. Assume an undirected graph unless stated otherwise. You must output a node visitation seq...

Coding & Algorithms
2
0
24 people solved
Feb 2, 2026
LinkedIn logo
LinkedIn
Easy
Data Scientist

Compute article-type diversity per user and histogram

You track article views and article metadata. Tables article_views - user_id INT - article_id INT - view_date DATE articles - article_id INT (PK) - ar...

Data Manipulation (SQL/Python)
5
0
40 people solved
Feb 1, 2026
LinkedIn logo
LinkedIn
Easy
Data Scientist

Find top countries by population per continent

Table world_population - continent VARCHAR - country VARCHAR - population BIGINT Assume each row is a country’s latest population and (continent, coun...

Data Manipulation (SQL/Python)
4
0
64 people solved
Feb 1, 2026
Microsoft logo
Microsoft
Hard
Software Engineer Locked

Extract stream prefix before stop token

This question evaluates streaming string processing, incremental substring detection across chunk boundaries, and memory-efficient algorithm design fo...

Coding & Algorithms
3
0
62 people solved
Feb 1, 2026
Meta logo
Meta
Medium
Software Engineer

Solve tree view and parentheses cleanup

Solve the following two algorithm problems. 1. Right-side view of a binary tree Given the root of a binary tree, return the values of the nodes that w...

Coding & Algorithms
6
0
43 people solved
Feb 1, 2026
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Design stack with O(1) minimum query

This question evaluates understanding of stack-based data structures, constant-time operation constraints, and handling edge cases such as empty queri...

Coding & Algorithms
57
0
432 people solved
Feb 1, 2026
Uber logo
Uber
Medium
Data Scientist

Move zeros to the front

Given an integer array nums, move all elements equal to 0 to the beginning of the array while preserving the relative order of all non-zero elements. ...

Coding & Algorithms
4
1
55 people solved
Feb 1, 2026
Roblox logo
Roblox
Easy
Machine Learning Engineer

Find the Most Frequent Log Call

You are given a sequence of application log entries. Each entry contains the name of a function or API call made by the system. Write a function that ...

Coding & Algorithms
16
0
126 people solved
Feb 1, 2026
Bytedance logo
Bytedance
Easy
Software Engineer

Find Missing Ranges with Bounds

Given a sorted array of distinct integers nums and two integers lower and upper that define an inclusive interval [lower, upper], return all maximal r...

Coding & Algorithms
4
0
36 people solved
Feb 1, 2026
IBM logo
IBM
Medium
Software Engineer

Find minimum subarray length with k distinct integers

Given an integer array arr and an integer k, find the minimum length of a contiguous subarray that contains exactly k distinct integer values. Return ...

Coding & Algorithms
5
0
60 people solved
Jan 31, 2026
Microsoft logo
Microsoft
Medium
Software EngineerNew Grad Locked

Build a CSV Query Engine

This question evaluates proficiency in text parsing, data modeling, and implementing in-memory query semantics, including CSV parsing rules, type infe...

Coding & Algorithms
5
0
41 people solved
Jan 31, 2026
Citadel logo
Citadel
Hard
Data Scientist

Sort a nearly sorted array

Given an array of length \(n\) in which every element is at most \(k\) positions away from its location in the fully sorted order, design an algorithm...

Coding & Algorithms
4
0
79 people solved
Jan 30, 2026
Snapchat logo
Snapchat
Hard
Machine Learning Engineer

Implement calculator and graph connectivity

Answer the following coding problems: 1. Implement an arithmetic expression evaluator. Given a string containing non-negative integers, spaces, +, -, ...

Coding & Algorithms
6
0
53 people solved
Jan 30, 2026
Uber logo
Uber
Medium
Data Scientist Locked

How should Uber evaluate lower ETA?

This question evaluates competency in metrics design, causal inference, and experiment strategy for two-sided marketplaces, including detecting and ad...

Analytics & Experimentation
7
0
47 people solved
Jan 30, 2026
Netflix logo
Netflix
Medium
Software Engineer

Return valid task order from prerequisites

You are given N tasks labeled 0..N-1 and a list of directed dependency pairs [(a,b), ...] meaning task a must be done before task b. 1) Return one val...

Coding & Algorithms
9
0
129 people solved
Jan 30, 2026