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. 14 Keys KeyboardCoding· Microsoft
  2. 2All Paths from Source Lead to DestinationCoding· Microsoft
  3. 3Asteroid CollisionMediumCoding· Amazon, Microsoft
  4. 4Best time to buy and sell stockCoding· JGJMAN Group, MakeMyTrip
  5. 5Binary Tree Upside DownCoding· Linkedin, Microsoft
  6. 6CandyCoding· Microsoft
  7. 7Celebrity ProblemCoding· Flexport, Microsoft
  8. 8Cheapest flight within K stopsCoding· Microsoft
  9. 9Check for Contradictions in EquationsCoding· Microsoft, PhonePe
  10. 10Course Schedule ICoding· Microsoft, Visa
  11. 11Dijkstra's algorithmCoding· Atlassian, Google
  12. 12Distinct subsequencesCoding· Amazon, Microsoft
  13. 13Find The Closest Marked NodeCoding· Microsoft
  14. 14Find the Kth Lucky NumberCoding· Microsoft
  15. 15Flip GameCoding· Microsoft
  16. 16Floyd warshall algorithmCoding· Microsoft
  17. 17Koko eating bananas.MediumCoding· Flipkart, Amazon
  18. 18Logger Rate LimiterCoding· Microsoft
  19. 19Longest happy prefixCoding· Microsoft
  20. 20Lowest Common Ancestor of a Binary Tree IVCoding· J.P. Morgan, Microsoft
  21. 21Max Consecutive Ones IICoding· Microsoft
  22. 22Maximum Product Subarray in an ArrayCoding· Cisco Meraki, Microsoft
  23. 23Number of Connected Components in an Undirected GraphCoding· Goldman Sachs, Microsoft
  24. 24Palindrome RemovalCoding· Microsoft