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

15 questions

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