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

1,063 questions

  1. 385Find All Anagrams in a StringMediumCoding· Walmart
  2. 386Find best possible sum in a treeCoding· FactSet Research Systems Inc.
  3. 387Find First and Last Position of Element in Sorted ArrayMediumCoding· Slice
  4. 388Find K Pairs with Smallest SumsMediumCoding· Intuit
  5. 389Find Maximum Product Subarray in an arrayCoding· Flipkart
  6. 390Find Median from Data StreamHardCoding· Flipkart
  7. 391Find Pivot IndexEasyCoding· Microsoft
  8. 392Find the CelebrityCoding· Linkedin
  9. 393Find the first missing positiveCoding· BitGo
  10. 394Find the Kth Highest Frequency Character in a StreamCoding· Walmart
  11. 395Find the Largest Palindrome Divisible by KHardCoding· Uber
  12. 396Find the Largest Submatrix with all 1sCoding· DoorDash
  13. 397Find the length of Longest SubstringCoding· IDFC First Bank
  14. 398Find the Maximum Length of Valid Subsequence IIMediumCoding· Expedia
  15. 399Find the minimum number of steps from the source to the destination.Coding· Linkedin
  16. 400Find the Most Competitive SubsequenceMediumCoding· Nutanix
  17. 401Find the next closest largest palindrome of a given numberCoding· Uber
  18. 402Find the next Even integerCoding· IDFC First Bank
  19. 403Find the next permutationCoding· Morgan Stanley
  20. 404Find the number of edges in the largest connected component of a graphCoding· Amazon
  21. 405Find the Number of Ways to Place People IIHardCoding· Uber
  22. 406Find the Occurrence of First Almost Equal SubstringHardCoding· ServiceNow
  23. 407Find the peak element in a rotated sorted array.Coding· Amazon
  24. 408Find the root of the largest treeCoding· Goldman Sachs