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. 49Kth Smallest Element in an ArrayCoding· Intuit, Microsoft
  2. 50Largest NumberMediumCoding· Microsoft
  3. 51Longest Consecutive SequenceMediumCoding· Amazon, Microsoft
  4. 52Merge in Between Linked ListCoding· Microsoft
  5. 53Most Profit Assigning WorkMediumCoding· Microsoft
  6. 54Palindrome partitioning IICoding· Amazon, Microsoft
  7. 55Product of Array Except SelfMediumCoding· PayPal, Target
  8. 56Reorder ListMediumCoding· Microsoft
  9. 57SortingCoding· GoDaddy, Microsoft
  10. 58Tag ValidatorHardCoding· Microsoft
  11. 59The Skyline ProblemHardCoding· Microsoft, Zomato
  12. 60TreeCoding· AAugnito, Expedia
  13. 61Two-Pointer BasedCoding· AAugnito, Cisco Meraki
  14. 62Given an array of integers and an integer k, find the kth largest element in the array.MediumCoding· Meta, Microsoft
  15. 63Given 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
  16. 64Delete Node in a Binary Search Tree (BST).MediumCoding· Microsoft
  17. 65Explain the differences between an interface and an abstract class.MediumCodingTechnical· Goldman Sachs, Microsoft
  18. 66Explain the differences between stack and heap memory allocation.MediumCoding· Apple, Microsoft
  19. 67Find the longest substring without repeating characters.MediumCoding· Apple, Intuit
  20. 68Implement LRU Cache.HardCoding· Accenture, Adobe
  21. 69Print all words from a dictionary that can be found on a given Boggle board.MediumCoding· Microsoft
  22. 70How would you store a list of numbers as a single number?MediumCodingTechnical· Atlassian, Microsoft
  23. 71Given a list of sentences, find the top n most frequent words.MediumCoding· Microsoft
  24. 72Determine if an array of integers from 1 to n contains a duplicate in constant time and space.MediumCoding· Adobe, Apple