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

30 questions

  1. 1Automorphic NumberCoding· Visa
  2. 2Course Schedule ICoding· Microsoft, Visa
  3. 3Left Rotate Array by K PlacesCoding· Oracle, Visa
  4. 4Majority Element-ICoding· Amazon, MakeMyTrip
  5. 5Maximum Product Subarray in an ArrayCoding· Cisco Meraki, Microsoft
  6. 6Maximum Size Subarray Sum Equals kCoding· Amazon, Visa
  7. 7Merge IntervalsMediumCoding· Blinkit, Docquity Holdings(PBS)
  8. 8Merge two sorted listsEasyCoding· Intuit, Oracle
  9. 9Number of operations to make network connectedCoding· Visa
  10. 10Search in a 2D matrixCoding· Visa
  11. 11The Number of Ways to Make the SumCoding· Visa
  12. 12Check If Array Pairs Are Divisible by kMediumCoding· Visa
  13. 13DFS BasedCoding· Visa
  14. 14Falling Squares VariationCoding· Visa
  15. 15Group anagramsMediumCoding· Blinkit, MakeMyTrip
  16. 16Linked List CycleEasyCoding· CCognitree
  17. 17Maximum Number of Occurrences of a SubstringMediumCoding· Visa
  18. 18Minimum Addition to Make Integer BeautifulMediumCoding· Visa
  19. 19Numbers with Even Number of ZerosCoding· Visa
  20. 20Recent Bus DepartureCoding· Visa
  21. 21Implement LRU Cache.HardCoding· Accenture, Adobe
  22. 22Find the maximum subarray sum.MediumCoding· Adobe, Apple
  23. 23Given an integer array nums and an integer k, return true if nums has a subarray of at least two elements whose sum is a multiple of k.HardCoding· Adobe, Apple
  24. 24Calculate the trapped rainwater between bars in a given array.HardCoding· Adobe, Amazon