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

37 questions

  1. 1Climbing StairsEasyCoding· Media.net
  2. 2Merge two sorted listsEasyCoding· Intuit, Oracle
  3. 3Top k frequent elementsMediumCoding· Amazon, Apple
  4. 4Group anagramsMediumCoding· Blinkit, MakeMyTrip
  5. 5Product of Array Except SelfMediumCoding· PayPal, Target
  6. 601 Matrix: find the nearest zero for every cellMediumCoding· Adobe, Oracle
  7. 7Given the root of a binary tree of integers, return the maximum path sum.MediumCoding· Adobe, Apple
  8. 8Build a Basic Regex ParserHardCoding· Adobe, Apple
  9. 9Print all combinations of numbers from 1 to n that sum to n.MediumCoding· Adobe, Apple
  10. 10Cycle Detection in Package Manager.MediumCoding· Adobe
  11. 11Explain how to find a target sum in an array.MediumCoding· Adobe, Google
  12. 12Find the DuplicatesEasyCoding· Adobe, Apple
  13. 13Find a triplet in an array with a given sum.MediumCoding· Adobe, Goldman Sachs
  14. 14Generate ParenthesesMediumCoding· Adobe, Google
  15. 15Given n houses in a line with money in each, find the maximum amount a robber can steal, without stealing from two adjacent houses.MediumCoding· Adobe, Apple
  16. 16PermutationsMediumCoding· Adobe, Apple
  17. 17Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple
  18. 18Implement LRU Cache.HardCoding· Accenture, Adobe
  19. 19Find the maximum subarray sum.MediumCoding· Adobe, Apple
  20. 20Merge k sorted linked lists.HardCoding· Adobe, Apple
  21. 21Move all zeros to the end of an array.EasyCoding· Adobe, Amazon
  22. 22Given 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
  23. 23Sudoku SolverHardCoding· Adobe, Apple
  24. 24Calculate the trapped rainwater between bars in a given array.HardCoding· Adobe, Amazon