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

Implement a disk space manager with eviction

Design and implement an in-memory disk space manager that stores datasets by datasetId with a given size (e.g., in MB). The manager has a fixed total ...

Coding & Algorithms
6
0
79 people solved
Mar 1, 2026
Samsung logo
Samsung
Medium
Machine Learning Engineer

Maximize sum of non-adjacent values

Problem You are given an integer array nums representing the amount of money available at each house along a street. If you take money from house i, y...

Coding & Algorithms
4
0
41 people solved
Mar 1, 2026
Google logo
Google
Easy
Software Engineer

Compute minimum rooms for time intervals

You are given a list of meeting time intervals, where each interval is represented as [start, end) (start time inclusive, end time exclusive) and star...

Coding & Algorithms
22
0
161 people solved
Mar 1, 2026
Uber logo
Uber
Medium
Machine Learning Engineer

Solve DFS grid and keypad problems

You may be asked to solve one or more DFS/backtracking problems: 1. Grid connectivity problem: Given an m x n grid where 1 represents land and 0 repre...

Coding & Algorithms
17
1
138 people solved
Mar 1, 2026
IBM logo
IBM
Medium
Software Engineer Locked

Compute minimum rooms for meeting schedule

This question evaluates a candidate's competency in interval-based scheduling and resource allocation, assessing understanding of overlapping time int...

Coding & Algorithms
4
0
64 people solved
Mar 1, 2026
Affirm logo
Affirm
Medium
Software Engineer Locked

Detect fraud events and extract PII

This question evaluates skills in parsing nested event data, extracting and deduplicating PII fields, and performing key-based correlation to detect r...

Coding & Algorithms
12
2
129 people solved
Mar 1, 2026
Meta logo
Meta
Hard
Software Engineer

Check and infer custom alphabet

You are working with an unknown language that uses a custom alphabetical order, such as ['a', 'd', 'c', 'b', ...]. Implement the following: 1. Check s...

Coding & Algorithms
4
1
67 people solved
Feb 28, 2026
Uber logo
Uber
Medium
Data ScientistNew Grad Locked

Model Driver Acceptance Probability

This question evaluates a candidate's competency in production machine learning system design and operationalization, including label definition and u...

Machine Learning
5
0
63 people solved
Feb 27, 2026
Uber logo
Uber
Medium
Data ScientistNew Grad Locked

Implement FizzBuzz

This question evaluates a candidate's ability to implement basic control flow, use modulo operations, iterate over sequences, and reason about time an...

Coding & Algorithms
4
0
51 people solved
Feb 27, 2026
SoFi logo
SoFi
Easy
Software Engineer

Find Smallest Common Row Value

You are given a 2D integer matrix where each row is sorted in strictly increasing order. Return the smallest integer that appears in every row. If no ...

Coding & Algorithms
3
0
55 people solved
Feb 27, 2026
Liftoff logo
Liftoff
Medium
Software Engineer

Parse and expand an IPv6 address

Implement an IPv6 address parser/normalizer. You are given a string s that may represent an IPv6 address using standard notation: - Up to 8 groups (“h...

Coding & Algorithms
4
0
33 people solved
Feb 26, 2026
Liftoff logo
Liftoff
Medium
Software Engineer

Find degrees of connection in a LinkedIn graph

You are given an undirected graph representing professional connections: - n people labeled 0..n-1 - a list of undirected edges connections, where (a,...

Coding & Algorithms
3
0
38 people solved
Feb 26, 2026
Liftoff logo
Liftoff
Medium
Software Engineer

Compute the Eddington number from ride distances

Given a list of positive integers distances, where distances[i] is the distance traveled on day i, compute the cyclist’s Eddington number E: E is the ...

Coding & Algorithms
2
0
26 people solved
Feb 26, 2026
Microsoft logo
Microsoft
Medium
Data Scientist

Traverse an Org Chart by Level

You are given an organization's reporting structure as a flat list of employee-manager relationships. Exactly one employee is the root (the CEO) and h...

Coding & Algorithms
15
1
138 people solved
Feb 25, 2026
Amplitude logo
Amplitude
Medium
Software Engineer

Implement lossless dictionary encoding and decoding

Dictionary encoding is a lossless compression technique for a list of tokens. You are given an input string consisting of words separated by commas, e...

Coding & Algorithms
3
0
60 people solved
Feb 25, 2026
Harvey logo
Harvey
Medium
Software Engineer Locked

Implement a Database Connection Pool

This question evaluates skills in concurrent resource management, synchronization primitives, and robust connection lifecycle handling within database...

Coding & Algorithms
20
0
180 people solved
Feb 25, 2026
Uber logo
Uber
Medium
Software Engineer

Find Kth Smallest in BST

You are given the root of a binary search tree and an integer k. Return the value of the node that would appear in the kth position if all node values...

Coding & Algorithms
3
0
49 people solved
Feb 25, 2026
Waymo logo
Waymo
Medium
Software Engineer Locked

Serialize Expression Tree Minimizing Parentheses

This question evaluates proficiency with binary expression trees, operator precedence and associativity, and the ability to serialize an abstract synt...

Coding & Algorithms
6
0
64 people solved
Feb 25, 2026
Google logo
Google
Medium
Software EngineerNew Grad

Implement an LRU cache

Design a key-value cache with a fixed capacity. It must support: - get(key): return the value for the key if it exists, otherwise return -1. - put(key...

Coding & Algorithms
3
0
40 people solved
Feb 24, 2026
Microsoft logo
Microsoft
Medium
Machine Learning Engineer Locked

Implement cache and merge intervals

This question evaluates proficiency in designing and implementing efficient data structures (a fixed-capacity LRU key-value cache) and interval-proces...

Coding & Algorithms
3
0
33 people solved
Feb 23, 2026