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
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
Meta logo
Meta
Medium
Software Engineer

Find closest BST value and remove parentheses

Question LeetCode 270. Closest Binary Search Tree Value LeetCode 1249. Minimum Remove to Make Valid Parentheses (follow-up: achieve without using a st...

Coding & Algorithms
13
0
55 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Design prefix-sum function and max stack

Question LeetCode 303. Range Sum Query – Immutable (design a reusable prefix-sum function) LeetCode 716. Max Stack (similar design question) https://l...

Coding & Algorithms
4
0
15 people solved
Jul 29, 2025
Character.AI logo
Character.AI
Medium
Software Engineer

Explain strings and copy complexity

Question What is a string? What fields does a struct string contain, and how would you implement it yourself? What is the time complexity of copying a...

Coding & Algorithms
4
0
15 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
Meta logo
Meta
Medium
Software Engineer

Solve various LeetCode data-structure questions

Question LeetCode 129. Sum Root to Leaf Numbers LeetCode 2089. Find Target Indices After Sorting Array LeetCode 270. Closest Binary Search Tree Value ...

Coding & Algorithms
16
0
46 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
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
Ramp logo
Ramp
Medium
Software Engineer

Navigate maze via HTTP API

Question Implement a program that repeatedly calls a provided HTTP API which returns the next URL in a maze; continue following the URLs until reachin...

Coding & Algorithms
13
0
51 people solved
Jul 29, 2025
Character.AI logo
Character.AI
Medium
Software Engineer

Design timestamped key-value map

Question Design a class that supports insert(key, value, timestamp) and get(key, timestamp) where get returns the value whose timestamp is the smalles...

Coding & Algorithms
16
0
42 people solved
Jul 29, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Find Top K Frequent Elements

Question LeetCode 347. Top K Frequent Elements – given an integer array nums, return the k most frequent elements. Initial requirement: return the top...

Coding & Algorithms
5
0
19 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Check tree nodes equal subtree average

Question LeetCode 2265. Count Nodes Equal to Average of Subtree – Adapted: Verify that every node’s value equals the average of all values in its subt...

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

Find integer in most intervals

Question Given N integer intervals [ai, bi] (positive integers), find an integer that belongs to the maximum number of intervals (return any such inte...

Coding & Algorithms
7
0
18 people solved
Jul 29, 2025
Rippling logo
Rippling
Medium
Software Engineer

Compute concurrent online drivers

Question Given each driver’s chronologically sorted delivery records, build an algorithm that, for a timestamp t, returns how many distinct drivers we...

Coding & Algorithms
7
0
19 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve diameter and shortest bridge problems

Question LeetCode 543. Diameter of Binary Tree LeetCode 934. Shortest Bridge https://leetcode.com/problems/diameter-of-binary-tree/description/ https:...

Coding & Algorithms
19
0
58 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute minimum passes over permutation

Question You are given an array shelf representing a permutation of the integers 1..n. Starting with target = 1, you repeatedly scan the array left-to...

Coding & Algorithms
66
0
138 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
Meta logo
Meta
Medium
Software Engineer

Solve island and frequency problems

Question LeetCode 200. Number of Islands – given a 2D grid, count the number of connected islands of '1's using DFS/BFS/Union-Find. LeetCode 695. Max ...

Coding & Algorithms
41
0
66 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve 4 LeetCode algorithm problems

Question LeetCode 636. Exclusive Time of Functions LeetCode 253. Meeting Rooms II LeetCode 314. Binary Tree Vertical Order Traversal LeetCode 215. Kth...

Coding & Algorithms
1
0
7 people solved
Jul 29, 2025