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

33 questions

  1. 1Merge IntervalsMediumCoding· Blinkit, Docquity Holdings(PBS)
  2. 2Merge two sorted listsEasyCoding· Intuit, Oracle
  3. 3Top k frequent elementsMediumCoding· Amazon, Apple
  4. 4Group anagramsMediumCoding· Blinkit, MakeMyTrip
  5. 5Linked List CycleEasyCoding· CCognitree
  6. 6Product of Array Except SelfMediumCoding· PayPal, Target
  7. 7Course ScheduleMediumCoding· Zoho
  8. 801 Matrix: find the nearest zero for every cellMediumCoding· Adobe, Oracle
  9. 9Print all combinations of numbers from 1 to n that sum to n.MediumCoding· Adobe, Apple
  10. 10Implement a hashmap without using any libraries.HardCoding· Apple, Goldman Sachs
  11. 11Find a triplet in an array with a given sum.MediumCoding· Adobe, Goldman Sachs
  12. 12Generate ParenthesesMediumCoding· Adobe, Google
  13. 13Implement TrieMediumCoding· Apple, Goldman Sachs
  14. 14Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple
  15. 15Find the lowest common ancestor (LCA) of two nodes in a binary tree.MediumCoding· Apple, LinkedIn
  16. 16Implement LRU Cache.HardCoding· Accenture, Adobe
  17. 17Find the maximum subarray sum.MediumCoding· Adobe, Apple
  18. 18Merge k sorted linked lists.HardCoding· Adobe, Apple
  19. 19Find the minimum window substring.MediumCoding· Airbnb, Dropbox
  20. 20Given 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
  21. 21Calculate the trapped rainwater between bars in a given array.HardCoding· Adobe, Amazon
  22. 22Vertical Traversal of a Binary TreeMediumCoding· Meta, Oracle
  23. 23How would you sort a bitonic array efficiently?MediumCoding· Oracle
  24. 24Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple