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
Microsoft logo
Microsoft
Medium
Machine Learning Engineer

Implement K-Means and Detect Divisible Subarrays

Solve both coding tasks. Part A: Implement K-Means Clustering Implement K-means clustering for a set of points. Given: - points: a list of n points, w...

Coding & Algorithms
1
0
16 people solved
Apr 18, 2026
Databricks logo
Databricks
Medium
Machine Learning EngineerSenior+

Design In-Memory QPS Counter

Implement an in-memory traffic counter. You need to support two operations for each logical key, such as an endpoint, customer, or service name: - rec...

Coding & Algorithms
12
0
93 people solved
Apr 18, 2026
Bytedance logo
Bytedance
Easy
Software Engineer

Equalize Root-to-Leaf Sums in an N-ary Tree

Equalize Root-to-Leaf Sums in an N-ary Tree You are given a rooted tree. Node i has nonnegative value values[i]. In one operation, you may increase on...

Coding & Algorithms
0
0
10 people solved
Apr 17, 2026
Uber logo
Uber
Hard
Software Engineer

Determine Whether a Word Exists in a Character Grid

Given a 2D character grid and a word, return whether the word can be formed by moving horizontally or vertically between adjacent cells without reusin...

Coding & Algorithms
0
0
12 people solved
Apr 17, 2026
Uber logo
Uber
Hard
Software Engineer

Maintain the First Value That Appears Exactly Once

Design a data structure that maintains a stream of integers and returns the first value that appears exactly once. Implement: `python class FirstUniqu...

Coding & Algorithms
0
0
1 people solved
Apr 17, 2026
Box logo
Box
Easy
Software Engineer

Implement a Leaky Bucket Rate Limiter

Implement a leaky bucket rate limiter. You are given a class template for a rate limiter that controls whether incoming requests should be accepted or...

Coding & Algorithms
1
0
5 people solved
Apr 17, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Retain Top K Elements

Given a list of integers nums and an integer k, return a new list formed from the original list after removing every element except the k largest elem...

Coding & Algorithms
1
0
12 people solved
Apr 17, 2026
Meta logo
Meta
Medium
Software Engineer

Solve Array, Matrix, and Recommendation Problems

During an onsite coding interview, solve the following independent tasks. Problem 1: In-place unique prefix You are given a nondecreasing integer arra...

Coding & Algorithms
0
0
16 people solved
Apr 17, 2026
Netflix logo
Netflix
Medium
Software Engineer

Implement TTL Cache and Tree Balance Reporting

Complete both coding tasks. Task A: Time-limited cache Design and implement an in-memory cache where every key expires after a time-to-live duration. ...

Coding & Algorithms
1
0
13 people solved
Apr 17, 2026
Uber logo
Uber
Medium
Machine Learning Engineer

Find First Local Minimum

Given an integer array nums, find the index of the first local minimum. A local minimum is an element that is smaller than its immediate neighbors: - ...

Coding & Algorithms
3
0
20 people solved
Apr 17, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Determine Whether Queries Can Zero Array

This question evaluates understanding of range-based array operations and feasibility under bounded per-index decrements, testing skills in interval r...

Coding & Algorithms
2
0
26 people solved
Apr 17, 2026
Uber logo
Uber
Medium
Software EngineerNew Grad Locked

Determine Whether Queries Can Zero Array

This question evaluates competency in array manipulation, range updates, and feasibility under constraints, focusing on reasoning about sequential int...

Coding & Algorithms
3
0
50 people solved
Apr 17, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Compute Exclusive Time from Stack Events

Compute Exclusive Time from Stack Events Given entry and exit events from one thread, compute the total exclusive running time of each function. The i...

Coding & Algorithms
0
0
11 people solved
Apr 16, 2026
Meta logo
Meta
Medium
Machine Learning Engineer AI

Find a String Containing Another

Given a list of strings, determine whether any string in the list contains another string from the same list as a contiguous substring. Return one str...

Coding & Algorithms
0
0
14 people solved
Apr 16, 2026
Collegevine logo
Collegevine
Medium
Software Engineer

Find the Highest-Cost Top-Level Job

You are given a local JSON file, jobs.json, containing an array of background job records. Each record has: - id: a unique job identifier - parent_id:...

Coding & Algorithms
1
0
13 people solved
Apr 16, 2026
Uber logo
Uber
Medium
Software EngineerSenior+

Find Any Available Meeting Room

You are given multiple meeting rooms. For each room, the existing bookings are represented as a list of non-overlapping time intervals sorted by start...

Coding & Algorithms
9
0
55 people solved
Apr 16, 2026
Glean logo
Glean
Hard
Software Engineer

Search Words in a Character Grid

You are given a 2D grid board of lowercase English letters with m rows and n columns. A word can be constructed from letters of sequentially adjacent ...

Coding & Algorithms
7
0
130 people solved
Apr 15, 2026
Harvey logo
Harvey
Medium
Software Engineer

Highlight Exact Source Matches

You are given a string text and a list of strings sources. For every exact occurrence of any string in sources within text, wrap the matched character...

Coding & Algorithms
2
0
28 people solved
Apr 15, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Find Longest Activatable Server Streak

This question evaluates array algorithm skills, specifically recognition of sliding-window or two-pointer techniques and reasoning about time and spac...

Coding & Algorithms
3
0
36 people solved
Apr 15, 2026
Bytedance logo
Bytedance
Medium
Software EngineerSenior+

Find Words in a Character Grid

Implement findWords(board, words) for a word-search game. You are given an m x n grid of lowercase English letters and a list of lowercase dictionary ...

Coding & Algorithms
0
0
6 people solved
Apr 14, 2026