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

Solve tree leaf sum and target indices search

Question LeetCode 129. Sum Root to Leaf Numbers LeetCode 2089. Find Target Indices After Sorting Array (array already sorted; require O(log n) time) h...

Coding & Algorithms
7
0
34 people solved
Jul 29, 2025
xAI logo
xAI
Medium
Software Engineer

Explain and Implement Strings

Question What is a string in programming languages? Inside a struct string{} in Rust, what fields are stored and how would you design and implement on...

Coding & Algorithms
2
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

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

Check Palindrome and Add Decimal Strings

Question LeetCode 266. Palindrome Permutation – Given a string, determine whether any permutation can form a palindrome. Follow-up: If a palindrome pe...

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

Detect shuffle-mode sequence

Question Given a playlist of distinct songs and two player modes—Random (each next song chosen independently and uniformly at random, with replacement...

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

Solve LeetCode stack and tree problems

Question LeetCode 1249. Minimum Remove to Make Valid Parentheses LeetCode 863. All Nodes Distance K in Binary Tree https://leetcode.com/problems/minim...

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

Explain strings, moves, and concurrency

Question What is a string in programming languages? What fields are stored in a typical struct string and how would you implement one yourself? What i...

Coding & Algorithms
24
0
68 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

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

Handle palindrome & decimal addition

Question LeetCode 266. Palindrome Permutation Given two non-negative decimal number strings, implement addition that supports a decimal point. https:/...

Coding & Algorithms
11
0
35 people solved
Jul 29, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Implement bank account with cashback

Implement a bank account processor. Given an initial non-negative integer balance B and a list of operations (n up to 1e 5), apply each operation in o...

Coding & Algorithms
3
0
56 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