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

343 questions

  1. 49Find the Maximum Length of Valid Subsequence IIMediumCoding· Expedia
  2. 50Find the Most Competitive SubsequenceMediumCoding· Nutanix
  3. 51Find the Smallest Divisor Given a ThresholdMediumCoding· Amazon
  4. 52Find the Winner of an Array GameMediumCoding· Microsoft
  5. 53Find Three Consecutive Integers That Sum to a Given NumberMediumCoding· Google
  6. 54Flatten Nested List IteratorMediumCoding· Linkedin
  7. 55Friend Requests II: Who Has the Most FriendsMediumCoding· Amazon
  8. 56Friends Of Appropriate AgesMediumCoding· Adobe
  9. 57Gas StationMediumCoding· Amazon, Cleartrip
  10. 58Get Equal Substrings Within BudgetMediumCoding· Amazon
  11. 59Group anagramsMediumCoding· Blinkit, MakeMyTrip
  12. 60House Robber IIMediumCoding· Acko
  13. 61Increasing Triplet SubsequenceMediumCoding· MakeMyTrip, Nutanix
  14. 62Insert Delete GetRandom O(1)MediumCoding· Amazon, D. E. Shaw & Co
  15. 63Interleaving StringMediumCoding· Zeta
  16. 64K-th Largest Perfect Subtree Size in Binary TreeMediumCoding· Informatica
  17. 65Kth Largest Sum in a Binary TreeMediumCoding· FactSet Research Systems Inc.
  18. 66Kth Smallest Element in a Sorted MatrixMediumCoding· Adobe
  19. 67Largest NumberMediumCoding· Microsoft
  20. 68Largest Submatrix With RearrangementsMediumCoding· Amazon
  21. 69Linked List Cycle IIMediumCoding· ServiceNow
  22. 70Longest Consecutive SequenceMediumCoding· Amazon, Microsoft
  23. 71Longest Palindromic SubstringMediumCoding· AutoDesk
  24. 72Make K-Subarray Sums EqualMediumCoding· Walmart