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

140 questions

  1. 1Explain the trade-offs involved in model selection.MediumAI ML· 10 min· Microsoft
  2. 2How would you measure the success of a generative-AI product?MediumProductData· 10 min· Microsoft
  3. 3Asteroid CollisionMediumCoding· Amazon, Microsoft
  4. 4Koko eating bananas.MediumCoding· Flipkart, Amazon
  5. 5Top k frequent elementsMediumCoding· Amazon, Apple
  6. 6Extra Characters in a StringMediumCoding· Microsoft
  7. 7Find the Winner of an Array GameMediumCoding· Microsoft
  8. 8Largest NumberMediumCoding· Microsoft
  9. 9Longest Consecutive SequenceMediumCoding· Amazon, Microsoft
  10. 10Most Profit Assigning WorkMediumCoding· Microsoft
  11. 11Product of Array Except SelfMediumCoding· PayPal, Target
  12. 12Reorder ListMediumCoding· Microsoft
  13. 13Your ML approach didn't workMediumData· Microsoft
  14. 14Walk me through how you'd approach a problem with data not refreshing on the Microsoft Dynamics dashboard.MediumData· Microsoft
  15. 15Tell me about a time when you showed growth mindset.MediumBehavioral· Microsoft
  16. 16You are designing an A/B test on Bing. When would you run a user-tied flight versus an untied flight, and what are the benefits and drawbacks of each?MediumData· Microsoft, State Bank Of India
  17. 17Given an array of integers and an integer k, find the kth largest element in the array.MediumCoding· Meta, Microsoft
  18. 18Given two empty jugs with capacities a and b liters and an infinite water supply, determine a way to end up with exactly X liters of water.MediumCoding· Microsoft
  19. 19Tell me about a time you convinced someone to change their mind.MediumBehavioral· Asana, Gladly
  20. 20Decide product-market fit for sticky post-its.MediumProduct· Microsoft
  21. 21Delete Node in a Binary Search Tree (BST).MediumCoding· Microsoft
  22. 22Design an alarm clock for blind people.MediumProduct· Google, Microsoft
  23. 23Design an AR app for college tours.MediumProduct· Microsoft
  24. 24Design an ATM for the blind.MediumProduct· Google, Microsoft