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 486 Companies08.11.2026
Showing 20 results
Role
NVIDIA logo
NVIDIA
Hard
Software EngineerSenior+

Determine Whether One Point Can Reach Another

Determine Whether One Point Can Reach Another You start at a point (sx, sy) with positive integer coordinates. From (x, y), one move may transform the...

Coding & Algorithms
1
0
21 people solved
Jul 16, 2026
Asana logo
Asana
Medium
Software Engineer

Find the K Closest Points to the Origin

Find the K Closest Points to the Origin Given points, a list of distinct integer coordinate pairs [x, y], and an integer k, return the k points closes...

Coding & Algorithms
2
1
18 people solved
Jul 16, 2026
Whatnot logo
Whatnot
Hard
Software Engineer

Merge Two Sorted Arrays

Merge Two Sorted Arrays Given two integer arrays sorted in nondecreasing order, return a new array containing every value from both inputs in nondecre...

Coding & Algorithms
1
0
12 people solved
Jul 14, 2026
Vanta logo
Vanta
Medium
Software Engineer

Implement Adjacent-Line Uniq

Implement Adjacent-Line Uniq Implement the core behavior of the Unix-style uniq utility: combine consecutive equal lines into one run. The interview r...

Coding & Algorithms
1
0
14 people solved
Jul 13, 2026
Netflix logo
Netflix
Medium
Software Engineer

Simulate a TTL Cache with LRU Eviction

Simulate a TTL Cache with LRU Eviction Implement a deterministic simulator for a cache that combines per-key expiration with a fixed-capacity least-re...

Coding & Algorithms
1
0
15 people solved
Jul 11, 2026
Instacart logo
Instacart
Medium
Software Engineer

Build a Progressive Banking System

Build a Progressive Banking System The source reports progressive account, activity-ranking, expiring-transfer, and merge features but not exact retur...

Coding & Algorithms
1
0
14 people solved
Jul 11, 2026
Anduril logo
Anduril
Medium
Software Engineer

Find Heap Objects Not Referenced by the Stack

Find Heap Objects Not Referenced by the Stack Each heap object has a unique integer address. In this first version, heap objects do not reference one ...

Coding & Algorithms
1
0
15 people solved
Jul 10, 2026
Okx logo
Okx
Medium
Software EngineerSenior+

Group Strings By Anagram Signature

Given a list of strings, group the strings so that each group contains words that are anagrams of each other. Discuss both a sorting-based signature a...

Coding & Algorithms
0
0
10 people solved
Jul 8, 2026
Meta logo
Meta
Medium
Software EngineerSenior+

Choose the Cheapest Round Trip

Choose the Cheapest Round Trip You are given two arrays of equal length. departure[i] is the cost of departing on day i, and return_cost[j] is the cos...

Coding & Algorithms
1
1
17 people solved
Jul 6, 2026
Apple logo
Apple
Medium
Software Engineer

Solve Subset Sum And Return All Matching Subsets

Given an array of non-negative integers and a target, first determine whether any subset sums to the target using dynamic programming with O(target) s...

Coding & Algorithms
2
0
7 people solved
Jul 6, 2026
Upstart logo
Upstart
Easy
Software Engineer

Report Where a Value Appears

Report Where a Value Appears Given a target and an even-length integer list, return four binary flags describing whether the target occurs: 1. at an e...

Coding & Algorithms
0
0
9 people solved
Jul 5, 2026
Upstart logo
Upstart
Easy
Software Engineer

Remove Duplicate Integers While Preserving Order

Remove Duplicate Integers While Preserving Order Return the distinct integers from an input list in the order of their first appearance. Function Sign...

Coding & Algorithms
1
0
8 people solved
Jul 5, 2026
Upstart logo
Upstart
Easy
Software Engineer

Compute a Point Set's Bounding Rectangle

Compute a Point Set's Bounding Rectangle Given two-dimensional integer points, return the smallest axis-aligned rectangle containing every point. Repr...

Coding & Algorithms
1
0
14 people solved
Jul 5, 2026
Amazon logo
Amazon
Hard
Software Engineer

Find Two-Word Compound Words

Given a list of unique lowercase words, return every word that can be formed by concatenating exactly two other words from the same list. For each com...

Coding & Algorithms
1
0
18 people solved
Jul 5, 2026
Amazon logo
Amazon
Easy
Software Engineer

Implement Regular Expression Matching

Implement Regular Expression Matching Determine whether an entire input string matches a pattern containing lowercase letters and two special symbols:...

Coding & Algorithms
1
0
16 people solved
Jul 4, 2026
Amazon logo
Amazon
Easy
Software Engineer

Unify Stock-Trading Profit Variants

Unify Stock-Trading Profit Variants Given daily stock prices, return the maximum profit when you may complete at most max_transactions buy-then-sell t...

Coding & Algorithms
1
0
13 people solved
Jul 4, 2026
Snowflake logo
Snowflake
Medium
Software Engineer

Find the Nearest Target Character and Support Streaming Updates

Given an array of characters and a target character, return the distance from each index to the nearest target occurrence, or -1 if the target never a...

Coding & Algorithms
0
0
11 people solved
Jul 4, 2026
SoFi logo
SoFi
Easy
Software EngineerSenior+

Return All Nodes Reachable from a Starting Vertex

Given directed edges and a starting vertex, return all vertices reachable from the start, including the start. The graph may contain cycles. Implement...

Coding & Algorithms
0
0
13 people solved
Jul 3, 2026
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Count Digit-Reversal Equivalent Pairs

Define flipdigits(x) as the integer produced by reversing the decimal digits of non-negative integer x and removing leading zeroes from the reversed r...

Coding & Algorithms
0
0
8 people solved
Jul 2, 2026
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Simulate Alternating Stick Collection for a Nest

A bird is building a nest in a forest represented by an array forest. Positive integers are sticks, where the integer value is the stick length. Zeroe...

Coding & Algorithms
0
0
6 people solved
Jul 2, 2026