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
1,063 questions
- 841Merge k sorted linked lists.HardCoding·
Adobe, Apple - 842Find the minimum characters to insert to make a string a palindrome.MediumCoding·
Uber - 843Given 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 - 844Given two strings (Word 1 and Word 2) and a list of valid words from a dictionary, return the minimum number of operations required to convert Word 1 to Word 2.HardCoding·
Airbnb - 845Find the minimum window substring.MediumCoding·
Airbnb, Dropbox - 846Most Common WordsEasyCoding·
Amazon - 847Move all zeros to the end of an array.EasyCoding·
Adobe, Amazon - 848Given a string of parentheses types and an array of their efficiency ratings, write a function to find the most efficient valid parentheses sequence that can be formed. Return its total efficiency score.HardCoding·
Amazon - 849Partition an array into two sub-arrays with equal sum.MediumCoding·
Apple, LinkedIn - 850Print all words from a dictionary that can be found on a given Boggle board.MediumCoding·
Microsoft - 851Given 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 - 852Write functions to serialize and deserialize a list of strings.MediumCoding·
Google, Nvidia - 853Session Data Analysis.HardCodingTechnical·
Amazon - 854Sort an array containing only 0s, 1s, and 2s.MediumCodingTechnical·
LinkedIn - 855Sort a binary array in linear time.EasyCoding·
Accenture, Apple - 856How do you split a machine learning dataset for training, evaluation, and testing?MediumCoding·
Amazon - 857Write a query to find all dates where the stadium had three or more consecutive days with attendance of 100 or more people.HardCodingData·
Amazon - 858Write a query to find the top 3 unique salaries in each department and list all employees who have those salaries.MediumCodingData·
Amazon - 859Squares of sorted arrayMediumCoding·
Meta, PayPal - 860Given a sorted array of integers (which may include negatives), return the squares of the numbers in sorted order. As a follow-up, find the k-th smallest squared value.MediumCoding·
Uber - 861How would you store a list of numbers as a single number?MediumCodingTechnical·
Atlassian, Microsoft - 862Given 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 - 863Sudoku SolverHardCoding·
Adobe, Apple - 864Get the top API users based on transaction logs.MediumCoding·
Amazon