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

  1. 3241How long would it take to fill an Olympic swimming pool with water from a garden hose?MediumProduct· Walmart Labs
  2. 3242Find the closest palindrome of a given number.MediumCoding· Uber
  3. 3243Find duplicate files in a file system.MediumCodingTechnical· Anthropic, Dropbox
  4. 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
  5. 3245Given an array of points and a point P, find the k closest points to P.MediumCoding· Amazon, LinkedIn
  6. 3246Find Largest NumbersMediumCoding· Accenture, Goldman Sachs
  7. 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
  8. 3248Find the minimum and maximum elements in an array using minimum comparisons.MediumTechnical· Mastercard
  9. 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
  10. 3250Find Monthly Revenue GrowthHardCodingData· Uber
  11. 3251Find the number of rotations in a circularly sorted array.MediumCoding· AMD, Microsoft
  12. 3252Find the palindromes.EasyCoding· Amazon, Apple
  13. 3253Find peak element in an arrayEasyCoding· Apple
  14. 3254Given a binary matrix with every row sorted, find the index of the row containing the most number of 1s.MediumCoding· Amazon
  15. 3255Find the shortest path in a graph.MediumCodingTechnical· Amazon
  16. 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
  17. 3257Find the maximum subarray productMediumCoding· LinkedIn
  18. 3258Given an array of integers, find a tuple of three integers that can form a triangle.MediumCoding· LinkedIn
  19. 3259Given an array, find the two sum.EasyCoding· Adobe, Amazon
  20. 3260How would you find participants for usability testing without access to local existing clients?MediumDataProduct· Google
  21. 3261Have you ever fired someone for low performance?MediumBehavioral· Meta
  22. 3262Tell me about a time when you had to fire someone.MediumBehavioral· Amazon
  23. 3263Why do you think you would be a good fit for Microsoft's mission?MediumBehavioral· Microsoft
  24. 3264What are you passionate about?MediumBehavioral· Amazon, American Express