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
Affirm logo
Affirm
Easy
Software Engineer

Implement an LRU cache

Problem Design and implement an LRU (Least Recently Used) cache that supports the following operations in average O(1) time: - get(key) -> value: Retu...

Coding & Algorithms
10
0
89 people solved
Nov 6, 2025
Applovin logo
Applovin
Hard
Software Engineer

Count invalid nodes in a BST

You are given the root of a binary tree. A valid Binary Search Tree (BST) must satisfy: for every node with value v, all values in its left subtree ar...

Coding & Algorithms
6
0
49 people solved
Nov 3, 2025
Meta logo
Meta
Medium
Data Scientist

How to decide if users need a new feature

You are a Data Scientist at a social app. The product team proposes a new in-app feature (e.g., a new sharing surface). You have event-level data and ...

Analytics & Experimentation
3
0
34 people solved
Nov 2, 2025
Google logo
Google
Easy
Software Engineer

Find k pairs with smallest sums

You are given two sorted integer arrays arr1 and arr2 (each sorted in non-decreasing order), and an integer k. Consider all possible pairs formed by t...

Coding & Algorithms
10
0
74 people solved
Nov 1, 2025
Schonfeld logo
Schonfeld
Medium
Data Scientist

Compute probability last passenger gets own seat

There are 100 passengers boarding a plane with 100 seats, numbered 1 to 100. Passenger i (for 1 ≤ i ≤ 100) has a ticket for seat i. The boarding proce...

Coding & Algorithms
2
0
40 people solved
Nov 1, 2025
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Implement nested object path lookup

This question evaluates parsing and traversal of nested maps and arrays, robust error handling for missing keys and out-of-bounds indices, and reasoni...

Coding & Algorithms
3
0
37 people solved
Oct 31, 2025
Navan logo
Navan
Medium
Software Engineer

How to answer frontend video-screen behavioral prompts

You are in a ~15-minute asynchronous AI video screen for a Frontend Engineer role. You will record short responses that will be reviewed by the hiring...

Behavioral & Leadership
6
0
70 people solved
Oct 30, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Answer multi-round grid and data-structure questions

You are given several independent interview-style coding questions. 1) Find first/last occurrence in sorted array (+ dynamic updates follow-ups) Given...

Coding & Algorithms
18
0
135 people solved
Oct 30, 2025
Meta logo
Meta
Medium
Software Engineer Locked

Design an Instagram-like auction platform

This question evaluates expertise in large-scale system design, including distributed systems, data modeling, real-time messaging, consistency models,...

System Design
1
0
23 people solved
Oct 30, 2025
Apple logo
Apple
Medium
Software EngineerSenior+

Solve Digit-Square and Grid BFS Problems

Solve the following coding problems. Problem 1: Digit-square convergence Given a positive integer n, repeatedly replace n with the sum of the squares ...

Coding & Algorithms
0
0
9 people solved
Oct 28, 2025
Two Sigma logo
Two Sigma
Medium
Data ScientistIntern

Why Is the Sample Mean Approximately Normal for Large Samples?

In statistics we routinely treat the average of a large sample as if it were normally distributed — for example, when building confidence intervals fo...

Machine Learning
3
0
23 people solved
Dec 1, 2024
Affirm logo
Affirm
Medium
Software Engineer Locked

Find shortest unique substring per word

This question evaluates string-processing and algorithmic problem-solving skills, focusing on identifying substrings unique to each word while handlin...

Coding & Algorithms
11
0
86 people solved
Oct 27, 2025
TikTok logo
TikTok
Medium
Software Engineer

Find k-th largest element in array

You are given an unsorted array of integers nums and a positive integer k. Design an efficient algorithm to find the k-th largest element in the array...

Coding & Algorithms
5
0
44 people solved
Oct 27, 2025
Amazon logo
Amazon
Medium
Machine Learning Engineer

Check if adding edge creates cycle in digraph

You work with a system that stores items and directed relationships between them (for example, item A points to item B). The relationships form a dire...

Coding & Algorithms
7
0
61 people solved
Oct 26, 2025
Airwallex logo
Airwallex
Medium
Data ScientistSenior+ Locked

Implement bootstrap mean and variance

This question evaluates the ability to implement bootstrap resampling and compute descriptive statistics, testing competency in statistical estimation...

Coding & Algorithms
3
0
32 people solved
Oct 24, 2025
Hebbiaai logo
Hebbiaai
Medium
Software Engineer Locked

Detect Winners in Nested Tic-Tac-Toe

This question evaluates board-evaluation and pattern-detection skills, modular decomposition for reusable logic, and the ability to reason about time ...

Coding & Algorithms
0
0
15 people solved
Oct 24, 2025
Bitkernel logo
Bitkernel
Medium
Software Engineer

Order SQL query logical processing steps

Consider a SQL query written in SQL-92 style: `sql SELECT foo, COUNT(foo) FROM pokes WHERE foo > 10 GROUP BY foo HAVING COUNT(foo) > 1 ORDER BY foo; `...

Software Engineering Fundamentals
3
0
57 people solved
Oct 24, 2025
Bitkernel logo
Bitkernel
Medium
Software Engineer

Classify concurrency anomaly between two transactions

Two transactions T1 and T2 run concurrently and access the same data item A. Their operations (in order of time) are: 1. T1 reads A = 100. 2. T2 reads...

Software Engineering Fundamentals
2
0
37 people solved
Oct 24, 2025
Bitkernel logo
Bitkernel
Medium
Software Engineer

Solve cups logic puzzle with one true statement

There are 4 cups on a table. Each cup has a statement written on it: - Cup 1 says: All cups contain fruit candy. - Cup 2 says: This cup contains apple...

Software Engineering Fundamentals
1
0
16 people solved
Oct 24, 2025
Bitkernel logo
Bitkernel
Medium
Software Engineer

Identify incorrect statement about sockets

In network programming using sockets, which of the following statements is incorrect? Options: - A. Socket communication requires at least one pair of...

Software Engineering Fundamentals
2
0
29 people solved
Oct 24, 2025