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
Ixl logo
Ixl
Hard
Software EngineerNew Grad Locked

Maintain a Stream Median

This question evaluates the ability to design and implement efficient online data structures and algorithms for maintaining dynamic order statistics a...

Coding & Algorithms
2
0
23 people solved
Feb 22, 2026
Google logo
Google
Medium
Software Engineer

Determine Reporting Relationships

Build an in-memory organization model that supports three operations on employee IDs: 1. add_manager(a, b): employee a is the direct manager of employ...

Coding & Algorithms
3
0
39 people solved
Feb 22, 2026
Meta logo
Meta
Medium
Data Scientist Locked

Find least active countries

This question evaluates proficiency in SQL-based data manipulation and analytics, focusing on time-based filtering, distinct aggregation, grouping, th...

Data Manipulation (SQL/Python)
4
1
42 people solved
Feb 22, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Implement Matrix Move and Logger

This question evaluates array manipulation and in-place algorithm design for handling overlapping submatrix moves, along with data-structure and time-...

Coding & Algorithms
4
0
41 people solved
Feb 22, 2026
Meta logo
Meta
Medium
Software Engineer

Find Kth Largest and Tree Ancestors

In a technical phone interview, the candidate was asked two coding problems in the same round: 1. K-th largest element in an array Given an unsor...

Coding & Algorithms
3
0
56 people solved
Feb 22, 2026
Confluent logo
Confluent
Medium
Software EngineerSenior+

Solve Signature, File, and Queue Problems

Solve the following interview-style problems: 1. Function signature matching You are given a registry of function definitions. Each function has an...

Coding & Algorithms
5
0
48 people solved
Feb 22, 2026
Mavenclinic logo
Mavenclinic
Medium
Software Engineer Locked

Solve two interview coding problems

This question evaluates graph traversal and pathfinding with weighted edge composition for currency conversion reachability, and sequence partitioning...

Coding & Algorithms
2
0
34 people solved
Feb 22, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Find possible robot positions

This question evaluates a candidate's ability to reason about grid traversal, boundary conditions, directional visibility counting, and constraint-bas...

Coding & Algorithms
4
0
97 people solved
Feb 21, 2026
Pinterest logo
Pinterest
Medium
Machine Learning EngineerSenior+ Locked

Solve Expression and Tree-List Problems

This question evaluates competency in string expression generation under a custom left-to-right evaluation rule and in-place binary search tree manipu...

Coding & Algorithms
15
0
108 people solved
Feb 21, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Find Duplicate Files by Content

You are given a list of directory descriptions. Each description has the following format: root_directory file_name_1(content_1) file_name_2(content_2...

Coding & Algorithms
0
0
3 people solved
Feb 21, 2026
Uber logo
Uber
Medium
Software Engineer

Count connected islands using Union-Find

You are given an m x n grid of characters where '1' represents land and '0' represents water. An island is a group of horizontally or vertically adjac...

Coding & Algorithms
29
0
227 people solved
Feb 20, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve array-sum and city-community problems

This question evaluates array-processing and grid/graph connectivity skills, covering counting subarrays with a target sum and identifying connected b...

Coding & Algorithms
6
0
61 people solved
Feb 20, 2026
Headway logo
Headway
Hard
Software Engineer Locked

Implement Journey Counter and Speeder Detector

This question evaluates parsing, time-series processing, and algorithmic reasoning for detecting complete journeys and speed violations from structure...

Coding & Algorithms
6
0
90 people solved
Feb 20, 2026
Palo logo
Palo
Medium
Software Engineer

Find Maximum Rectangle in Bar Chart

Given an array heights of n non-negative integers, where each value represents the height of a vertical bar in a bar chart and every bar has width 1, ...

Coding & Algorithms
1
0
15 people solved
Feb 20, 2026
Pinduoduo logo
Pinduoduo
Easy
Software Engineer

Find missing rank in a straight

You are given a list of 4 distinct characters representing card ranks from a 5-card straight (5 consecutive ranks) with exactly one rank missing. Rank...

Coding & Algorithms
6
0
44 people solved
Feb 19, 2026
Pinduoduo logo
Pinduoduo
Easy
Software Engineer

Find next greater element for subset

You are given two integer arrays query and nums. - All elements in nums are distinct. - Every element in query also appears in nums. For each value x ...

Coding & Algorithms
3
0
36 people solved
Feb 19, 2026
LinkedIn logo
LinkedIn
Medium
Machine Learning Engineer

Sample index from weighted probability distribution

Given an array weights[0..M-1] representing a discrete distribution over M outcomes, implement a function sampleIndex(weights) that returns an index i...

Coding & Algorithms
4
0
77 people solved
Feb 18, 2026
Armada logo
Armada
Medium
Software Engineer

Fetch paginated data from two APIs

Write a function get_enriched_records(api_a_url, api_b_url). api_a_url returns paginated JSON in the form: `json { "data": [ {"id": 1, "ref_id":...

Coding & Algorithms
3
0
27 people solved
Feb 17, 2026
Meta logo
Meta
Easy
Data Scientist Locked

Detect bots using comment distribution patterns

This question evaluates a candidate's competency in behavioral analytics, feature engineering, anomaly and bot detection, statistical validation, and ...

Analytics & Experimentation
4
0
58 people solved
Feb 16, 2026
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+

Solve Cache, Window, and Heap Problems

You may be asked to solve multiple algorithmic problems in coding rounds: 1. Frequency-based cache: Implement a cache with get(key) and put(key, value...

Coding & Algorithms
0
0
13 people solved
Feb 16, 2026