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 190Medium 2,498Hard 982
Filters · onDifficulty, topic, company

94 questions

  1. 250 and 1 KnapsackCoding· Meta
  2. 26Array NestingMediumCoding· Meta
  3. 27Binary Tree Level Order TraversalCoding· Meta
  4. 28Binary Tree Right Side ViewMediumCoding· Meta
  5. 29Boats to Save PeopleMediumCoding· IDFC FIRST Bank, Meta
  6. 30Check if a Parentheses String Can Be ValidMediumCoding· Meta, ServiceNow
  7. 31Longest Increasing SubsequenceMediumCodingAI ML· Atlassian, Meta
  8. 32Compare two linked lists of stringsCoding· Meta
  9. 33Compare two linked lists where each node contains a character array.Coding· Meta
  10. 34Count Subarrays Where Max Element Appears at Least K TimesMediumCoding· Meta
  11. 35Finding the Kth largest element in a stream of integersCoding· Meta
  12. 36Insert Delete GetRandom O(1)Coding· Meta
  13. 37Maximum Depth of Binary TreeEasyCoding· Blinkit, Infosys
  14. 38Maximum sum of non adjacent elementsCoding· Meta, Zeta
  15. 39Minimum Remove to Make Valid ParenthesesMediumCoding· Meta
  16. 40Product of Array Except SelfMediumCoding· PayPal, Target
  17. 41Shortest pathCoding· Meta
  18. 42Sort Array By ParityEasyCoding· Meta
  19. 43Sort Even and Odd Indices IndependentlyEasyCoding· Meta
  20. 44Sort a K-Messed ArrayMediumCoding· Meta
  21. 45Spiral MatrixCoding· Meta, PayPal
  22. 46Substring with Concatenation of All WordsCoding· Meta
  23. 47Sum Root to Leaf NumbersMediumCoding· BitGo, Meta
  24. 48Super PowCoding· Meta