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
FiltersDifficulty, topic, company
4,310 questions
- 3241How long would it take to fill an Olympic swimming pool with water from a garden hose?MediumProduct·
Walmart Labs - 3242Find the closest palindrome of a given number.MediumCoding·
Uber - 3243Find duplicate files in a file system.MediumCodingTechnical·
Anthropic, Dropbox - 3244Find the element at a given position in a sorted version of an unsorted array. Example: Input: {5,1,7,19,0,16}, k=3 Output: 5 (Explanation: Sorted array is {0,1,5,7,16,19}, and the 3rd positioned element is 5.)MediumCodingTechnical·
Philips - 3245Given an array of points and a point P, find the k closest points to P.MediumCoding·
Amazon, LinkedIn - 3246Find Largest NumbersMediumCoding·
Accenture, Goldman Sachs - 3247Given a list of Nodes, each with a unique string id and a list of subnodes it depends on, find the maximum depth of the dependencies.MediumCoding·
Amazon - 3248Find the minimum and maximum elements in an array using minimum comparisons.MediumTechnical·
Mastercard - 3249Given an array 'nums' with n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.EasyCoding·
Accenture - 3250Find Monthly Revenue GrowthHardCodingData·
Uber - 3251Find the number of rotations in a circularly sorted array.MediumCoding·
AMD, Microsoft - 3252Find the palindromes.EasyCoding·
Amazon, Apple - 3253Find peak element in an arrayEasyCoding·
Apple - 3254Given a binary matrix with every row sorted, find the index of the row containing the most number of 1s.MediumCoding·
Amazon - 3255Find the shortest path in a graph.MediumCodingTechnical·
Amazon - 3256Given an array of task durations (in minutes), return the pairs of tasks that can be completed within 60 minutes. For example, for [1, 43, 20, 59, 30, 30], return [[0, 3], [4, 5]].MediumCoding·
DoorDash - 3257Find the maximum subarray productMediumCoding·
LinkedIn - 3258Given an array of integers, find a tuple of three integers that can form a triangle.MediumCoding·
LinkedIn - 3259Given an array, find the two sum.EasyCoding·
Adobe, Amazon - 3260How would you find participants for usability testing without access to local existing clients?MediumDataProduct·
Google - 3261Have you ever fired someone for low performance?MediumBehavioral·
Meta - 3262Tell me about a time when you had to fire someone.MediumBehavioral·
Amazon - 3263Why do you think you would be a good fit for Microsoft's mission?MediumBehavioral·
Microsoft - 3264What are you passionate about?MediumBehavioral·
Amazon, American Express