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

70 questions

  1. 25Valid AnagramCoding· Adobe
  2. 2601 Matrix: find the nearest zero for every cellMediumCoding· Adobe, Oracle
  3. 27Given the root of a binary tree of integers, return the maximum path sum.MediumCoding· Adobe, Apple
  4. 28Build a Basic Regex ParserHardCoding· Adobe, Apple
  5. 29Print all combinations of numbers from 1 to n that sum to n.MediumCoding· Adobe, Apple
  6. 30Cycle Detection in Package Manager.MediumCoding· Adobe
  7. 31Design a typeahead box for a search engine.HardSystem design· Adobe, Amazon
  8. 32Explain how to find a target sum in an array.MediumCoding· Adobe, Google
  9. 33Find the DuplicatesEasyCoding· Adobe, Apple
  10. 34Find a triplet in an array with a given sum.MediumCoding· Adobe, Goldman Sachs
  11. 35Generate ParenthesesMediumCoding· Adobe, Google
  12. 36Given n houses in a line with money in each, find the maximum amount a robber can steal, without stealing from two adjacent houses.MediumCoding· Adobe, Apple
  13. 37How would you improve retention for the Adobe Mobile Scan app?HardProduct· Adobe
  14. 38How would you improve Google Maps?MediumProduct· Adobe, Google
  15. 39What are the key metrics you track for the product you currently manage?MediumDataProduct· Adobe, PayPal
  16. 40PermutationsMediumCoding· Adobe, Apple
  17. 41Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple
  18. 42Implement LRU Cache.HardCoding· Accenture, Adobe
  19. 43Find the maximum subarray sum.MediumCoding· Adobe, Apple
  20. 44You're a PM at Instagram responsible for building the Reels feature. How would you define and measure its success?MediumData· Adobe
  21. 45Merge k sorted linked lists.HardCoding· Adobe, Apple
  22. 46Move all zeros to the end of an array.EasyCoding· Adobe, Amazon
  23. 47How would you reduce cancellations on Uber?MediumDataProduct· Adobe, Uber
  24. 48Given 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