Tech Interview Questions

Practice 9,160+ 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.2k Questions 486 Companies08.11.2026
Showing 20 results
Role
Confluent logo
Confluent
Medium
Software Engineer

Rank songs by pairwise user preferences

You are given preference rankings for n users over m songs. Each song is labeled from 0 to m - 1. For each user i (0-indexed), you are given an array ...

Coding & Algorithms
26
0
182 people solved
Nov 30, 2025
TikTok logo
TikTok
Medium
Data Scientist

Investigating Correlation Between Ad Visits and Reports

Scenario You are on the analytics team at a large social media platform. A positive correlation has been observed between the number of page visits to...

Analytics & Experimentation
6
0
62 people solved
Jun 22, 2025
Two Sigma logo
Two Sigma
Hard
Data Scientist

Smallest Palindrome Strictly Greater Than K

A palindrome is a positive integer whose decimal representation reads the same forwards and backwards, with no leading zeros. For example, 7, 44, 121,...

Coding & Algorithms
0
0
7 people solved
Nov 28, 2025
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Find longest palindromic substring

This question evaluates knowledge of string algorithms and pattern recognition, focusing on identifying palindromic substrings and reasoning about tim...

Coding & Algorithms
6
0
66 people solved
Nov 28, 2025
Hudson logo
Hudson
Medium
Data Scientist Locked

Derive expected inversions and mean distribution

This question evaluates understanding of permutation inversion statistics, computation of random-variable moments (expectation and variance), and the ...

Machine Learning
5
0
42 people solved
Nov 28, 2025
Hudson logo
Hudson
Medium
Data Scientist

Count inversions in a permutation

Problem Given an array a of length n that is a permutation of distinct integers (e.g., 1..n), define an inversion as a pair of indices (i, j) such tha...

Coding & Algorithms
9
0
69 people solved
Nov 28, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Implement simple VM manager with CRUD operations

You are asked to implement a simple in-memory virtual machine (VM) manager that can: - List all VMs - Add (create) a new VM - Modify (update) an exist...

Coding & Algorithms
7
0
70 people solved
Nov 28, 2025
Uber logo
Uber
Medium
Software Engineer

Compute exclusive execution time from logs

Problem You are given execution logs from a single-threaded CPU that runs n functions labeled 0..n-1. The CPU can run only one function at a time. A f...

Coding & Algorithms
9
0
92 people solved
Nov 27, 2025
Point72 logo
Point72
Hard
Data Scientist

Derive the Optimal Bid in a Two-Bidder Second-Price Auction

Derive the Optimal Bid in a Two-Bidder Second-Price Auction Two risk-neutral bidders compete for one item in a sealed-bid second-price auction. Your p...

Statistics & Math
0
0
1 people solved
Nov 25, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Implement a calendar with non-overlapping bookings

Problem Design a calendar booking system that stores half-open time intervals [start, end) (inclusive of start, exclusive of end). Implement a class w...

Coding & Algorithms
12
1
89 people solved
Nov 25, 2025
Google logo
Google
Easy
Software Engineer

Solve three coding problems

The interview note described the following coding questions: 1. Find the N-th license plate in lexicographic order - A license plate has exactly 6 ...

Coding & Algorithms
8
0
72 people solved
Jun 15, 2025
Google logo
Google
Medium
Data ScientistSenior+

Simulate Uniform(0,1) from random bits

Assume you have access to a function rand_bit() that returns 0 or 1 with equal probability and independent across calls. How would you generate a rand...

Coding & Algorithms
2
0
37 people solved
Nov 24, 2025
Google logo
Google
Medium
Software Engineer

Add two big integers from digit lists

You are given two non-empty singly linked lists (or arrays) representing two non-negative integers. The digits are stored in reverse order, and each n...

Coding & Algorithms
11
0
102 people solved
Nov 24, 2025
Google logo
Google
Medium
Software EngineerNew Grad

Solve Banana Speed and Interval Merge

During two technical phone screens for a new graduate software engineering role, the candidate was asked to solve two coding problems: minimum eating ...

Coding & Algorithms
9
0
58 people solved
Jan 27, 2025
Stripe logo
Stripe
Medium
Software Engineer Locked

Process Transactions and Compute Balances

This question evaluates a candidate's ability to implement stateful transaction processing, accurate integer bookkeeping across accounts and currencie...

Coding & Algorithms
1
0
20 people solved
Nov 21, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Find the k-th largest element in an array

Given an integer array nums and an integer k, return the k-th largest element in the array. Notes: - The k-th largest element is the element that woul...

Coding & Algorithms
11
0
87 people solved
Nov 21, 2025
PayPal logo
PayPal
Easy
Data Scientist

Explain confounding with an Uber example

Question You are interviewing for a Data Scientist role and are given access to Uber / Uber Eats data. Answer the following about confounding in causa...

Statistics & Math
5
0
64 people solved
Nov 20, 2025
Rippling logo
Rippling
Medium
Software EngineerIntern

Find median of two sorted arrays

You are given two sorted arrays of integers nums1 and nums2 in non-decreasing order. Let the lengths be m = nums1.length and n = nums2.length. Either ...

Coding & Algorithms
18
0
136 people solved
Nov 20, 2025
xAI logo
xAI
Easy
Software Engineer

Phone Keypad Predictive Text Suggestions

Phone Keypad Predictive Text Suggestions You are building the predictive-text feature for a classic 9-key phone keypad. Each digit from 2 to 9 maps to...

Coding & Algorithms
1
0
13 people solved
Jun 7, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Implement staircase printing and distributed mode/median

Problem A: Print a “staircase” pattern Implement a function that prints a staircase with n rows. Input - An integer n (n >= 1) Output - Print n lines....

Coding & Algorithms
67
0
923 people solved
Nov 19, 2025