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 3Medium 33Hard 6
Filters · onDifficulty, topic, company

55 questions

  1. 25Explain the differences between an interface and an abstract class.MediumCodingTechnical· Goldman Sachs, Microsoft
  2. 26How would you estimate the number of Slack users?MediumProduct· Salesforce
  3. 27Tell me about a SaaS product you really like using.MediumProduct· Salesforce
  4. 28Given 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
  5. 29How do you build and manage a project schedule?MediumProduct· Dropbox, Microsoft
  6. 30Find the longest substring without repeating characters.MediumCoding· Apple, Intuit
  7. 31Implement LRU Cache.HardCoding· Accenture, Adobe
  8. 32Find the maximum subarray sum.MediumCoding· Adobe, Apple
  9. 33Why did Salesforce acquire Tableau?Medium· Salesforce
  10. 34Sudoku SolverHardCoding· Adobe, Apple
  11. 35Tell me about yourself.MediumBehavioral· Accenture, ADP
  12. 36Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  13. 37Given n employees and an expansion rate r, find the number of employees after t years.EasyTechnical· Salesforce
  14. 38Design a system to schedule jobs in a distributed environment.HardSystem design· Amazon, DoorDash
  15. 39Tell me about a time when you disagreed with Engineering.MediumBehavioralTechnical· Airbnb, Google
  16. 40Can you provide an example of how you manage conflict?MediumBehavioral· Discord, eBay
  17. 41Given an array, find the two sum.EasyCoding· Adobe, Amazon
  18. 42Tell me about your greatest success.MediumBehavioral· Amazon, Apple
  19. 43How do you handle a customer who asks why your product is so expensive?MediumBehavioralProduct· Salesforce
  20. 44Given 2 strings, return the longest common substring.MediumCoding· Salesforce
  21. 45Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding· Adobe, Amazon
  22. 46Tell me about your past projects.MediumBehavioral· Accenture, Amazon
  23. 47Determine if a number is a power of two.MediumCoding· Salesforce
  24. 48Write a function to return all prime numbers up to a given number n.MediumCoding· Adobe, Apple