Question bank
4,310 interview questions, answered.
Reference answers, what the interviewer is really testing, how it is graded, and the follow-ups that come next.
Easy 190Medium 2,498Hard 982
Filters · onDifficulty, topic, company
89 questions
- 49String manipulation relatedCoding·
Google - 50String manipulation related problemCoding·
Google - 51Super StreakCoding·
Google - 52Target sumCoding·
Google - 53Tree Problem TraversalCoding·
Google - 54Given a list of car rental requests with start and end times, assign cars to rentals such that the total number of cars used is minimized.MediumCoding·
Google - 55Given the root of a binary tree, return the length of the diameter of the tree.MediumCoding·
Amazon, Google - 56Given a list with response time for each server, calculate how long time it will take to process n requests.MediumCoding·
Google - 57Sort a list of natural numbers and their squares in the most efficient way possible.MediumCoding·
Google - 58Explain malloc, calloc, and reelloc.MediumCodingTechnical·
Google - 59Explain how to find a target sum in an array.MediumCoding·
Adobe, Google - 60Generate ParenthesesMediumCoding·
Adobe, Google - 61Sort a nearly sorted (or K sorted) array.MediumCoding·
Google - 62PermutationsMediumCoding·
Adobe, Apple - 63Find the longest palindromic subsequence using dynamic programming.MediumCoding·
Adobe, Apple - 64Maximum ProfitEasyCoding·
Google - 65Find the maximum subarray sum.MediumCoding·
Adobe, Apple - 66Merge k sorted linked lists.HardCoding·
Adobe, Apple - 67Given a large n-ary tree where the root node can pass information to one child per iteration, and in subsequent iterations, nodes can pass information to one child while the root continues with others, find the minimum number of iterations to reach all nodes.MediumCoding·
Google - 68Given a matrix with a rat, bread, cat, and obstacles, find a path from the rat to the bread that maximizes the minimum distance from cat.HardCoding·
Google - 69Write functions to serialize and deserialize a list of strings.MediumCoding·
Google, Nvidia - 70Sort a binary array in linear time.EasyCoding·
Accenture, Apple - 71Given an integer array nums and an integer k, return true if nums has a subarray of at least two elements whose sum is a multiple of k.HardCoding·
Adobe, Apple - 72Calculate the height of a binary tree.EasyCoding·
Apple, Google