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

129 questions

  1. 25If you have 2 clients requesting very different features for the same product, how would you prioritize them?MediumBehavioral· Apple
  2. 26How do you coach and develop your engineering team?MediumBehavioral· Apple, Cointracker
  3. 27Implement multi-head self-attention correctlyHardCodingSystem design· Apple
  4. 28Print all combinations of numbers from 1 to n that sum to n.MediumCoding· Adobe, Apple
  5. 29Find the container with the maximum volume of water.MediumCoding· Apple, Goldman Sachs
  6. 30Design a bookshelf.Medium· Apple
  7. 31Design a better dog collar.Medium· Apple
  8. 32Implement a hashmap without using any libraries.HardCoding· Apple, Goldman Sachs
  9. 33Design an indexer and a retrieverMediumCoding· Apple
  10. 34Design a typeahead box for a search engine.HardSystem design· Adobe, Amazon
  11. 35You're an Apple product manager. How would you determine the ideal length of the iPhone charging cable?Medium· Apple
  12. 36Explain the differences between stack and heap memory allocation.MediumCoding· Apple, Microsoft
  13. 37What's your favorite non-tech product that you use frequently?EasyProduct· Apple
  14. 38Given 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
  15. 39Find the DuplicatesEasyCoding· Adobe, Apple
  16. 40You're working on a project where deadlines and targets are constantly slipping. How would you handle this?MediumBehavioral· Apple, Google
  17. 41Given 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
  18. 42Improve the Apple Watch.MediumProduct· Apple
  19. 43Implement TrieMediumCoding· Apple, Goldman Sachs
  20. 44PermutationsMediumCoding· Adobe, Apple
  21. 45Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple
  22. 46Find the longest substring without repeating characters.MediumCoding· Apple, Intuit
  23. 47Find the lowest common ancestor (LCA) of two nodes in a binary tree.MediumCoding· Apple, LinkedIn
  24. 48Implement LRU Cache.HardCoding· Accenture, Adobe