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

74 questions

  1. 49Find the maximum subarray sum.MediumCoding· Adobe, Apple
  2. 50Merge k sorted linked lists.HardCoding· Adobe, Apple
  3. 51Find the minimum window substring.MediumCoding· Airbnb, Dropbox
  4. 52Print the left view of a binary tree.Medium· Amazon, Meta
  5. 53Given 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
  6. 54Tell me about a time when you solved a complex problem and how you went about it.HardBehavioral· Amazon, Atlassian
  7. 55Calculate the trapped rainwater between bars in a given array.HardCoding· Adobe, Amazon
  8. 56Vertical Traversal of a Binary TreeMediumCoding· Meta, Oracle
  9. 57How would you sort a bitonic array efficiently?MediumCoding· Oracle
  10. 58Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  11. 59Build a CalculatorMediumCoding· Adobe, Apple
  12. 60Given a string, return the number of vowel substrings ('a', 'e', 'i', 'o', 'u') that include all five vowels.MediumCoding· Oracle
  13. 61Design browser history.MediumSystem design· Oracle, TikTok
  14. 62Determine if a given binary tree is a binary search tree (BST).MediumCoding· Adobe, Google
  15. 63Fibonacci NumbersEasyCoding· Adobe, Google
  16. 64Given an array, find the two sum.EasyCoding· Adobe, Amazon
  17. 65Tell me about a time when you made a mistake and how you handled it.MediumBehavioral· Amazon, Oracle
  18. 66Given a list of jobs and a list of dependencies where each job depends on another job being completed first, determine if it is possible to complete all jobs.MediumCoding· Oracle
  19. 67How have you managed risk in a project?MediumBehavioralProduct· Amazon, Google
  20. 68Tell me about the most challenging situation you faced in your career and how you handled it.MediumBehavioral· Adobe, Amazon
  21. 69Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding· Adobe, Amazon
  22. 70What is the project you are most proud of?MediumBehavioral· Adobe, Amazon
  23. 71Why do you want to switch jobs now?MediumBehavioral· Apple, Citi
  24. 72Total Outfit CombinationsEasyCoding· Oracle