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

17 questions

  1. 1LRU CacheMediumCoding· Adobe, Amazon
  2. 2Median of 2 sorted arraysCoding· PayPal, Paytm
  3. 3Reverse Words in a String IICoding· PayPal
  4. 4Best Time to Buy and Sell StockCoding· PayPal, Swiggy
  5. 5Longest Increasing SubsequenceMediumCodingAI ML· Atlassian, Meta
  6. 6Product of Array Except SelfMediumCoding· PayPal, Target
  7. 7Spiral MatrixCoding· Meta, PayPal
  8. 8Valid SudokuMediumCoding· PayPal
  9. 9Zigzag ConversionCoding· PayPal
  10. 10Given a castle with rooms named after flowers where each room has an instruction to the next room, write an algorithm to find the rooms containing treasure.MediumCoding· PayPal
  11. 11Find the longest substring without repeating characters.MediumCoding· Apple, Intuit
  12. 12Implement LRU Cache.HardCoding· Accenture, Adobe
  13. 13Squares of sorted arrayMediumCoding· Meta, PayPal
  14. 14Calculate the trapped rainwater between bars in a given array.HardCoding· Adobe, Amazon
  15. 15Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  16. 16Given an array, find the two sum.EasyCoding· Adobe, Amazon
  17. 17Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding· Adobe, Amazon