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

84 questions

  1. 1Top k frequent elementsMediumCoding· Amazon, Apple
  2. 23Sum ClosestMediumCoding· Apple, Kotak
  3. 3Group anagramsMediumCoding· Blinkit, MakeMyTrip
  4. 4Minimum Height TreesMediumCoding· Apple, UrbanCompany
  5. 5Product of Array Except SelfMediumCoding· PayPal, Target
  6. 6Course ScheduleMediumCoding· Zoho
  7. 7Given the root of a binary tree of integers, return the maximum path sum.MediumCoding· Adobe, Apple
  8. 8How would you build social features on Lyft to increase user engagement?MediumProductSystem design· Apple, Lyft
  9. 9If you have 2 clients requesting very different features for the same product, how would you prioritize them?MediumBehavioral· Apple
  10. 10How do you coach and develop your engineering team?MediumBehavioral· Apple, Cointracker
  11. 11Print all combinations of numbers from 1 to n that sum to n.MediumCoding· Adobe, Apple
  12. 12Find the container with the maximum volume of water.MediumCoding· Apple, Goldman Sachs
  13. 13Design a bookshelf.Medium· Apple
  14. 14Design a better dog collar.Medium· Apple
  15. 15Design an indexer and a retrieverMediumCoding· Apple
  16. 16You're an Apple product manager. How would you determine the ideal length of the iPhone charging cable?Medium· Apple
  17. 17Explain the differences between stack and heap memory allocation.MediumCoding· Apple, Microsoft
  18. 18Given an array with objects colored red, white, or blue, sort them so those of the same color are adjacent. Use integers 0, 1, 2 to represent RWB respectively.MediumCoding· Apple
  19. 19You're working on a project where deadlines and targets are constantly slipping. How would you handle this?MediumBehavioral· Apple, Google
  20. 20Given 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
  21. 21Improve the Apple Watch.MediumProduct· Apple
  22. 22Implement TrieMediumCoding· Apple, Goldman Sachs
  23. 23PermutationsMediumCoding· Adobe, Apple
  24. 24Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple