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

19 questions

  1. 1Koko eating bananas.MediumCoding· Flipkart, Amazon
  2. 2Count Submatrices With Equal Frequency of X and YMediumCoding· Goldman Sachs
  3. 3Gas StationMediumCoding· Amazon, Cleartrip
  4. 4Group anagramsMediumCoding· Blinkit, MakeMyTrip
  5. 5Maximize Amount After Two Days of ConversionsMediumCoding· Goldman Sachs
  6. 6Maximum Number of Jumps to Reach the Last IndexMediumCoding· Goldman Sachs
  7. 7Peak Index in a Mountain ArrayMediumCoding· Goldman Sachs
  8. 8Shortest Subarray to be Removed to Make Array SortedMediumCoding· Goldman Sachs
  9. 9Given the root of a binary tree of integers, return the maximum path sum.MediumCoding· Adobe, Apple
  10. 10Find the container with the maximum volume of water.MediumCoding· Apple, Goldman Sachs
  11. 11Explain the differences between an interface and an abstract class.MediumCodingTechnical· Goldman Sachs, Microsoft
  12. 12Find a triplet in an array with a given sum.MediumCoding· Adobe, Goldman Sachs
  13. 13Given 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
  14. 14Implement TrieMediumCoding· Apple, Goldman Sachs
  15. 15Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple
  16. 16Find Largest NumbersMediumCoding· Accenture, Goldman Sachs
  17. 17Given an array of n integers and a number k, find the maximum number of elements whose sum is less than k, and return their sum.MediumCoding· Goldman Sachs
  18. 18Implement a queue using stacks.MediumCoding· Goldman Sachs
  19. 19Given the row and column, return the value at that position in Pascal's triangle.MediumCoding· Goldman Sachs