Search Interview Questions & Tips for Senior Engineers

Search Interview Questions

Companies that ask Search Questions

Microsoft

Interview process & questions
Watch 24 interview replays

Netflix

Interview process & questions
Watch 4 interview replays

Common Search Interview Questions

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.

Subarray Sum Equals K

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

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.

Longest Common Subsequence

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

Two Sum

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

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.

Insert Delete getRandom O(1)

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

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.

Count Complete Tree Nodes

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

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.