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

Find Shortest Paths to Target Nodes

You are given a weighted directed graph representing distances between nodes. - There are n nodes labeled from 0 to n - 1. - edges[i] = [u, v, w] mean...

Coding & Algorithms
3
0
28 people solved
Apr 8, 2026
Uber logo
Uber
Medium
Software Engineer

Solve two interview coding problems

The interview included two coding problems. Problem 1: Find valid robot locations in a grid You are given a 2D grid containing empty cells and obstacl...

Coding & Algorithms
4
0
33 people solved
Apr 8, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Infer an Unknown Alphabet Order

You are given a list of words that is already sorted according to an unknown alphabet. Derive one valid ordering of the characters in that alphabet. R...

Coding & Algorithms
1
0
20 people solved
Apr 8, 2026
Databricks logo
Databricks
Hard
Software Engineer Locked

Find Fastest Commute Mode

This question evaluates graph traversal and shortest-path reasoning on a constrained 2D grid, including modeling movement rules per transportation mod...

Coding & Algorithms
10
1
76 people solved
Apr 8, 2026
Microsoft logo
Microsoft
Hard
Software Engineer Locked

Solve power jumps and graph tour

This pair of problems evaluates algorithmic problem-solving in number representation and combinatorial graph optimization, focusing on competencies in...

Coding & Algorithms
7
0
62 people solved
Apr 8, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Compute Infection Time in a Grid

This question evaluates competence in grid-based graph traversal and simulation of propagation dynamics, focusing on state management, time-step model...

Coding & Algorithms
19
1
182 people solved
Apr 7, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Minimize time for two handlers

This question evaluates algorithmic optimization skills and stateful scheduling reasoning, focusing on task assignment trade-offs and cumulative cost ...

Coding & Algorithms
7
0
98 people solved
Apr 7, 2026
Walmart Labs logo
Walmart Labs
Hard
Software Engineer

Shortest Talent-Covering Team Starting At Each Index

There are n students in a line. Each student has exactly one talent represented by an integer from 1 to talentsCount. A valid team is a contiguous sub...

Coding & Algorithms
1
0
10 people solved
Apr 6, 2026
Amazon logo
Amazon
Medium
Software Engineer AI

Calculate Circular Route Query Distance

You are given a circular route with n stops numbered 0 to n - 1. The array distances has length n, where distances[i] is the clockwise distance from s...

Coding & Algorithms
0
0
8 people solved
Apr 6, 2026
Valon logo
Valon
Medium
Software Engineer

Design an In-Memory Database

Implement a simple in-memory database with a flexible, schema-less record model. Requirements: - Each record is a mapping from column_name to value. -...

Coding & Algorithms
1
0
27 people solved
Apr 6, 2026
Snowflake logo
Snowflake
Hard
Software Engineer

Compute Inherited Role Privileges

You are given n roles. The array initialPrivileges has length n, where initialPrivileges[i] is the list of privileges directly assigned to role i. You...

Coding & Algorithms
1
0
14 people solved
Apr 5, 2026
Bloomberg logo
Bloomberg
Easy
Software Engineer Locked

Solve meeting and tree problems

This question evaluates skills in interval manipulation and boolean-based merging, along with binary-tree traversal and side-view extraction for strin...

Coding & Algorithms
1
0
24 people solved
Apr 5, 2026
Nextdoor logo
Nextdoor
Medium
Machine Learning EngineerNew Grad

Build Ranked Feed With Photo Batching

You are given a list of feed objects. Each object has: - id: a unique string - type: one of Normal, Video, or Photo - score: a numeric ranking score C...

Coding & Algorithms
1
0
15 people solved
Apr 5, 2026
Meta logo
Meta
Medium
Data Scientist

Count unconnected posts and reactions

You are analyzing a newly launched feed feature intended to improve engagement by showing more unconnected content. Assume the following tables: - pos...

Data Manipulation (SQL/Python)
21
2
200 people solved
Apr 5, 2026
Google logo
Google
Medium
Software Engineer Locked

Find Earliest Fully Connected Time

This question evaluates a candidate's understanding of dynamic graph connectivity, time-ordered event processing, and state maintenance in graphs, inc...

Coding & Algorithms
33
1
444 people solved
Apr 5, 2026
Bytedance logo
Bytedance
Medium
Data Scientist

Probability That One Fair Die Beats Another

Probability That One Fair Die Beats Another Two fair dice, A and B, are represented by integer arrays. Each array element is one physical face, so dup...

Coding & Algorithms
0
0
7 people solved
Apr 4, 2026
Hot Agent Startup logo
Hot Agent Startup
Medium
Software Engineer

Find High-Intensity Time Periods

Given a list of time-series readings, where each reading is {timestamp, intensity}, and a numeric threshold, return all maximal time periods during wh...

Coding & Algorithms
0
0
7 people solved
Apr 3, 2026
Uber logo
Uber
Medium
Software Engineer

Solve Balanced Permutations and Tree Reversals

You have 90 minutes to solve the following two independent coding problems. Problem 1: Balanced Prefix Values in a Permutation You are given a permuta...

Coding & Algorithms
10
0
111 people solved
Apr 3, 2026
Pinterest logo
Pinterest
Medium
Machine Learning Engineer

Design Hierarchical Permission Checks

You are given a hierarchy of groups represented as a tree, for example World -> Country -> City. Each advertiser can be granted access at any group no...

Coding & Algorithms
2
0
26 people solved
Apr 3, 2026
Databricks logo
Databricks
Medium
Software Engineer Locked

Solve Grid Path and Graph Sampling

This question evaluates graph algorithms and probabilistic/combinatorial reasoning, covering multi-criteria shortest-path optimization (minimizing tra...

Coding & Algorithms
4
0
41 people solved
Apr 3, 2026