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

63 questions

  1. 49Find the minimum window substring.MediumCoding· Airbnb, Dropbox
  2. 50Given 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
  3. 51Calculate the trapped rainwater between bars in a given array.HardCoding· Adobe, Amazon
  4. 52How would you sort a bitonic array efficiently?MediumCoding· Oracle
  5. 53Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  6. 54Build a CalculatorMediumCoding· Adobe, Apple
  7. 55Given a string, return the number of vowel substrings ('a', 'e', 'i', 'o', 'u') that include all five vowels.MediumCoding· Oracle
  8. 56Determine if a given binary tree is a binary search tree (BST).MediumCoding· Adobe, Google
  9. 57Fibonacci NumbersEasyCoding· Adobe, Google
  10. 58Given an array, find the two sum.EasyCoding· Adobe, Amazon
  11. 59Given 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
  12. 60Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding· Adobe, Amazon
  13. 61Total Outfit CombinationsEasyCoding· Oracle
  14. 62Valid ParenthesesEasyCoding· Apple, Booking.com
  15. 63Is this a valid palindrome?EasyCoding· Adobe, Apple