Search Interview Questions

Companies that ask Search Questions

Common Search Interview Questions

MEDIUM
Data Structures and Algorithms

Container With the Most Water

Given n non-negative integers, find two lines that form a container that can hold the most amount of water.

MEDIUM
Data Structures and Algorithms

Subarray Sum Equals K

Given an unsorted array of integers and an integer k, find the number of subarrays whose sum equals k.

MEDIUM
Data Structures and Algorithms

Three Sum

Given an array of integers, return an array of triplets such that i != j != k and nums[i] + nums[j] + nums[k] = 0.

MEDIUM
Data Structures and Algorithms

Longest Common Subsequence

Given two strings, return the longest common subsequence between the two strings.

EASY
Data Structures and Algorithms

Two Sum

Given an array of integers, return the indices of the two numbers that add up to a given target.

MEDIUM
Data Structures and Algorithms

Find Peak Element in a 2D Array

Given a two-dimensional binary matrix where 1 represents water and 0 represents land, mutate the matrix in place and return the matrix with the highest peak maximized.

MEDIUM
Data Structures and Algorithms

Insert Delete getRandom O(1)

Design and implement an efficient sampler that works in average O(1) time complexity.

MEDIUM
Data Structures and Algorithms

Find the Missing Number in an Array

Given an unsorted array of unique integers (size n + 1) and a first array identical to the second array, missing one integer (size n), find and output the missing integer.

MEDIUM
Data Structures and Algorithms

Count Complete Tree Nodes

Given the root of a complete binary tree, return the number of nodes in the tree.

MEDIUM
Data Structures and Algorithms

Right View Of Binary Tree

Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.

Adjacent Topics to Search

About interviewing.io

interviewing.io is a mock interview practice platform. We've hosted over 100K mock interviews, conducted by senior engineers from FAANG & other top companies. We've drawn on data from these interviews to bring you the best interview prep resource on the web.

We know exactly what to do and say to get the company, title, and salary you want.

Interview prep and job hunting are chaos and pain. We can help. Really.