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 11Hard 2
Filters · onDifficulty, topic, company

16 questions

  1. 1Climbing StairsEasyCoding· Media.net
  2. 2Merge IntervalsMediumCoding· Blinkit, Docquity Holdings(PBS)
  3. 3Group anagramsMediumCoding· Blinkit, MakeMyTrip
  4. 4Explain the differences between an interface and an abstract class.MediumCodingTechnical· Goldman Sachs, Microsoft
  5. 5Find a triplet in an array with a given sum.MediumCoding· Adobe, Goldman Sachs
  6. 6Generate ParenthesesMediumCoding· Adobe, Google
  7. 7Given 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
  8. 8Implement merge-sortMediumCoding· Walmart Labs
  9. 9Find the longest substring without repeating characters.MediumCoding· Apple, Intuit
  10. 10Implement LRU Cache.HardCoding· Accenture, Adobe
  11. 11Find the maximum subarray sum.MediumCoding· Adobe, Apple
  12. 12Merge k sorted linked lists.HardCoding· Adobe, Apple
  13. 13Partition an array into two sub-arrays with equal sum.MediumCoding· Apple, LinkedIn
  14. 14Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  15. 15Given an array, find the two sum.EasyCoding· Adobe, Amazon
  16. 16Is this a valid palindrome?EasyCoding· Adobe, Apple