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

22 questions

  1. 1Merge IntervalsMediumCoding· Blinkit, Docquity Holdings(PBS)
  2. 2Top k frequent elementsMediumCoding· Amazon, Apple
  3. 3Group anagramsMediumCoding· Blinkit, MakeMyTrip
  4. 4Product of Array Except SelfMediumCoding· PayPal, Target
  5. 5Course ScheduleMediumCoding· Zoho
  6. 601 Matrix: find the nearest zero for every cellMediumCoding· Adobe, Oracle
  7. 7Print all combinations of numbers from 1 to n that sum to n.MediumCoding· Adobe, Apple
  8. 8Find a triplet in an array with a given sum.MediumCoding· Adobe, Goldman Sachs
  9. 9Generate ParenthesesMediumCoding· Adobe, Google
  10. 10Implement TrieMediumCoding· Apple, Goldman Sachs
  11. 11Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple
  12. 12Find the lowest common ancestor (LCA) of two nodes in a binary tree.MediumCoding· Apple, LinkedIn
  13. 13Find the maximum subarray sum.MediumCoding· Adobe, Apple
  14. 14Find the minimum window substring.MediumCoding· Airbnb, Dropbox
  15. 15Vertical Traversal of a Binary TreeMediumCoding· Meta, Oracle
  16. 16How would you sort a bitonic array efficiently?MediumCoding· Oracle
  17. 17Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  18. 18Build a CalculatorMediumCoding· Adobe, Apple
  19. 19Given a string, return the number of vowel substrings ('a', 'e', 'i', 'o', 'u') that include all five vowels.MediumCoding· Oracle
  20. 20Determine if a given binary tree is a binary search tree (BST).MediumCoding· Adobe, Google
  21. 21Given a list of jobs and a list of dependencies where each job depends on another job being completed first, determine if it is possible to complete all jobs.MediumCoding· Oracle
  22. 22Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding· Adobe, Amazon