Tech Interview Questions

Practice 9,555+ interview questions from top companies including Google, Meta, Amazon, and more. Filter by company, role, and category.

Popular Interview Questions

Interview Questions

Practice the exact questions companies are asking right now.

9.6k Questions 505 Companies08.05.2026
Showing 20 results
Role
Amazon logo
Amazon
Medium
Software Engineer

Compute minimum passes to collect numbers

Question You are given an array shelf of n distinct integers that is a permutation of 1…n. Starting with target = 1, you repeatedly scan shelf from le...

Coding & Algorithms
76
0
200 people solved
Jul 29, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Find lowest common ancestor

Question LeetCode 236. Lowest Common Ancestor of a Binary Tree — Given a binary tree, find the lowest common ancestor (LCA) of two given nodes. Follow...

Coding & Algorithms
8
0
35 people solved
Jul 29, 2025
PayPal logo
PayPal
Medium
Software Engineer

Discuss Project Motivation and Career Goals

Discuss Project Motivation and Career Goals Behavioral Phone Screen Prompts — Software Engineer (PayPal) Context: You are in a technical phone screen ...

Behavioral & Leadership
7
0
52 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find most frequent log user

Question You are given a list of log entries in string format, where each entry contains a username and an access timestamp separated by a delimiter (...

Coding & Algorithms
24
0
49 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Determine Rounds for Star Substring Threshold

Question Given a string S, an offset array O (replacement order), and an integer M, repeatedly replace S[O[i]] with ''. Determine the minimum number o...

Coding & Algorithms
11
0
31 people solved
Jul 29, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Count changed nodes in N-ary trees

Question Given two N-ary trees (old and new versions) where each node has a key (string), value (int), and list of children, compute how many nodes ar...

Coding & Algorithms
13
0
45 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find largest island area

Question Given a 2D grid of 0s and 1s, find the largest area of a connected group of 1s (island) using 4-directional adjacency; return that area. (Var...

Coding & Algorithms
14
0
21 people solved
Jul 29, 2025
Google logo
Google
Medium
Software Engineer

Parse strings and find meeting slots

Question Given a text file where each line contains raw information, extract the user identifier and the numeric quantity on that line and store the r...

Coding & Algorithms
31
0
61 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve LeetCode array & stream problems

Question LeetCode 346. Moving Average from Data Stream LeetCode 249. Group Shifted Strings LeetCode 163. Missing Ranges Remove duplicates from a chara...

Coding & Algorithms
19
0
60 people solved
Jul 29, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Implement string-path file system operations

Question LeetCode 1166. Design File System – extended to support Create(path, value), Get(path), Set(path, value) and Delete(path) with validation rul...

Coding & Algorithms
6
0
30 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Solve intervals and distinct islands

Question LeetCode 56. Merge Intervals LeetCode 694. Number of Distinct Islands https://leetcode.com/problems/merge-intervals/description/ https://leet...

Coding & Algorithms
6
0
21 people solved
Jul 29, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Determine equality after limited swaps

Question LeetCode 1790. Check if One String Swap Can Make Strings Equal Follow-up: Given two strings, determine if they can become anagrams of each ot...

Coding & Algorithms
10
0
5 people solved
Jul 29, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Solve min window & animal conflicts

Question LeetCode 76. Minimum Window Substring: Given strings s and t, return the smallest substring of s that contains every character of t (includin...

Coding & Algorithms
21
0
54 people solved
Jul 29, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Find names similar by one swap

Question LeetCode 859. Buddy Strings – Given a target string and a list of strings, return all list entries that can match the target by swapping at m...

Coding & Algorithms
9
0
27 people solved
Jul 29, 2025
Talroo logo
Talroo
Medium
Software Engineer

Calculate area, flush probability, egg drops

Question Given two quarter-circles inside a 1×1 square (centers at bottom-left and top-right corners), find the exact area of their overlapping region...

Coding & Algorithms
85
0
284 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Compare two string linked lists

Question Given two singly linked lists where each node stores one character as a string, determine whether the sequences of characters represented by ...

Coding & Algorithms
7
0
20 people solved
Jul 29, 2025
Instacart logo
Instacart
Medium
Software Engineer

Evaluate dependent variable expressions

Question Given a target variable name and a list of assignment strings of the form 'Ti = expression' where the expression is either a number, a single...

Coding & Algorithms
26
0
101 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Compute product of array except self

Given an integer array nums, return an array out where out[i] equals the product of all elements in nums except nums[i]. Do it in O(n) time using cons...

Coding & Algorithms
2
0
22 people solved
Jul 29, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Reconstruct tree from inorder and postorder

Given two arrays representing the inorder and postorder traversals of a binary tree with unique values, reconstruct the original binary tree and retur...

Coding & Algorithms
7
0
56 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement a match-3 board resolver

Question Implement a match-3 board resolver (the core loop of a "candy crush"-style game). You are given an m×n grid of cells. Each cell holds a value...

Coding & Algorithms
3
0
41 people solved
Jul 29, 2025