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

81 questions

  1. 25Reachable Nodes Before DestructionCoding· Microsoft
  2. 26Rod cutting problemCoding· Microsoft
  3. 27Rotten OrangesCoding· Amazon, Informatica
  4. 28Single element in sorted arrayCoding· Microsoft
  5. 29Sort an array of 0's 1's and 2'sCoding· Microsoft, Nvidia
  6. 30Subarrays with K Different IntegersHardCoding· HHashedIn, Microsoft
  7. 31Top k frequent elementsMediumCoding· Amazon, Apple
  8. 32Topological sort or Kahn's algorithmCoding· Amazon, Microsoft
  9. 33ArrayCoding· J.P. Morgan, Microsoft
  10. 34BacktrackingCoding· Microsoft
  11. 35Binary Search and HeapsCoding· Microsoft
  12. 36Binary Tree Maximum Path SumHardCoding· Qualcomm, DoorDash
  13. 37Bottom View of a Binary TreeCoding· Microsoft
  14. 38Count Ways to Distribute CandiesCoding· Microsoft
  15. 39Cycle Length Queries in a TreeHardCoding· Microsoft
  16. 40Design Video Sharing PlatformHardCoding· Microsoft
  17. 41Encode and Decode StringsCoding· Amazon, Microsoft
  18. 42Extra Characters in a StringMediumCoding· Microsoft
  19. 43Find Pivot IndexEasyCoding· Microsoft
  20. 44Find the Winner of an Array GameMediumCoding· Microsoft
  21. 45Graph basedCoding· Microsoft, Spinny
  22. 46Grid with obstaclesCoding· Microsoft
  23. 47HashMap + Doubly Linked ListCoding· Microsoft
  24. 48Insert Delete GetRandom O(1) - Duplicates allowedHardCoding· Microsoft