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

1,063 questions

  1. 793Design a file upload feature for an AI chat application.MediumCodingSystem design· xAI
  2. 794Implement a hashmap without using any libraries.HardCoding· Apple, Goldman Sachs
  3. 795Explain how to design and implement a password checker based on specific requirements.MediumCodingTechnical· Peloton
  4. 796Design an indexer and a retrieverMediumCoding· Apple
  5. 797Design a marketplace where freelancers bid on contract jobs with the lowest bid winning the contract.HardCoding· Intuit
  6. 798Explain the differences between an interface and an abstract class.MediumCodingTechnical· Goldman Sachs, Microsoft
  7. 799Sort a list of natural numbers and their squares in the most efficient way possible.MediumCoding· Google
  8. 800Explain malloc, calloc, and reelloc.MediumCodingTechnical· Google
  9. 801Explain the differences between stack and heap memory allocation.MediumCoding· Apple, Microsoft
  10. 802Find a local minima in an array Last UpdatedMediumCoding· Meta
  11. 803Given 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
  12. 804Find the equilibrium index in an array where sum of elements to the left is equal to sum of elements to the right.MediumCoding· Meta
  13. 805Find the median from a data stream.MediumCoding· Bloomberg
  14. 806Find the first missing positive number in an array.HardCoding· Amazon
  15. 807Given a list of strings, find all strings that encode to the same value using a Caesar Cipher. (A Caesar Cipher rotates characters, e.g. in CC3: a->d, b->e, ..., z->c)MediumCoding· Meta, Pinterest
  16. 808Explain how to find a target sum in an array.MediumCoding· Adobe, Google
  17. 809Find the DuplicatesEasyCoding· Adobe, Apple
  18. 810Find a triplet in an array with a given sum.MediumCoding· Adobe, Goldman Sachs
  19. 811Given an array of numbers where every number occurs twice except one, how would you find the unique number in O(log n) time?MediumCoding· Meta
  20. 812Generate ParenthesesMediumCoding· Adobe, Google
  21. 813Given 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
  22. 814Implement a circular buffer.MediumCoding· Meta
  23. 815Implement file searchMediumCoding· Amazon
  24. 816Implement a k-nearest neighbors algorithm.EasyCodingAI ML· Amazon, Pinterest