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 18Hard 4
Filters · onDifficulty, topic, company

28 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. 11There's a YoY slowdown in transactions. How would you structure your analysis?HardData· PayPal
  12. 12How does PayPal generate its revenue?MediumProduct· PayPal
  13. 13What are the key metrics you track for the product you currently manage?MediumDataProduct· Adobe, PayPal
  14. 14Find the longest substring without repeating characters.MediumCoding· Apple, Intuit
  15. 15Implement LRU Cache.HardCoding· Accenture, Adobe
  16. 16Tell me about a time when you received negative feedback and how you handled it.MediumBehavioral· Amazon, American Express
  17. 17Squares of sorted arrayMediumCoding· Meta, PayPal
  18. 18Calculate the trapped rainwater between bars in a given array.HardCoding· Adobe, Amazon
  19. 19You're a PM for Uber Eats. Cart conversation has dropped by 10% in the last 3 months. How would you find the root cause?MediumDataProduct· PayPal
  20. 20Tell me about a user need that is not being met by the market. How would you validate a solution for it?MediumBehavioralProduct· PayPal
  21. 21Why did PayPal acquire Honey?Medium· PayPal
  22. 22Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  23. 23Design a system that recommends the next Confluence pages a user should view.HardAI MLSystem design· Atlassian, PayPal
  24. 24Given an array, find the two sum.EasyCoding· Adobe, Amazon