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
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
Upstart logo
Upstart
Medium
Data ScientistSenior+

Estimate one-child household probability

You survey 100 children at a school and ask how many children are in their family. The responses are: - 50 children say their family has 1 child. - 20...

Statistics & Math
7
0
61 people solved
Dec 11, 2024
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
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
Airbnb logo
Airbnb
Medium
Software Engineer

Simulate pouring water onto a 1D terrain

You are given a 1D terrain represented by an integer array heights, where heights[i] is the height of the column at index i. Part 1 — Render terrain W...

Coding & Algorithms
37
0
267 people solved
Oct 28, 2025
Snapchat logo
Snapchat
Hard
Software Engineer

Design ride-hailing and price alert systems

During a system design interview, you are asked two related but separate design questions. Treat each as an independent end-to-end design; you will be...

System Design
2
0
56 people solved
Oct 28, 2025
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
Meta logo
Meta
Medium
Software Engineer

Find shortest subarray with range ≥ k

Problem You are given an integer array nums of length n and an integer k. Define the range of a subarray as: \[ \max(\text{subarray}) - \min(\text{sub...

Coding & Algorithms
3
0
34 people solved
Oct 23, 2025
Snapchat logo
Snapchat
Medium
Software Engineer Locked

Compute maximum perimeter among islands

This question evaluates a candidate's proficiency with grid traversal, connected-component identification, and perimeter computation in binary matrice...

Coding & Algorithms
4
0
46 people solved
Oct 21, 2025
Nash AI logo
Nash AI
Medium
Software Engineer Locked

Design real-time delivery tracking with async updates

This question evaluates designing scalable, fault-tolerant real-time delivery tracking systems, focusing on asynchronous event processing, out-of-orde...

System Design
2
0
38 people solved
Oct 21, 2025
Nash AI logo
Nash AI
Medium
Software Engineer Locked

Implement Minesweeper click-to-reveal expansion

This question evaluates a candidate's ability to implement grid-based data structures, state management, and flood-fill style expansion logic for Mine...

Coding & Algorithms
2
0
42 people solved
Oct 21, 2025
Meta logo
Meta
Medium
Software Engineer

Find shortest substring with N unique characters

You are given a string s and an integer n. Find the shortest contiguous substring of s that contains exactly n distinct characters. If there is no suc...

Coding & Algorithms
3
0
40 people solved
Oct 21, 2025
Point72 logo
Point72
Easy
Data ScientistIntern

Find kth missing integer and redundant operations

You are given two independent coding tasks. Task 1: K-th missing number You are given an integer array nums (not necessarily sorted) containing distin...

Coding & Algorithms
7
0
55 people solved
Oct 20, 2025