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

12 questions

  1. 1Koko eating bananas.MediumCoding· Flipkart, Amazon
  2. 2Group anagramsMediumCoding· Blinkit, MakeMyTrip
  3. 3Given the root of a binary tree of integers, return the maximum path sum.MediumCoding· Adobe, Apple
  4. 4Find the container with the maximum volume of water.MediumCoding· Apple, Goldman Sachs
  5. 5Find a triplet in an array with a given sum.MediumCoding· Adobe, Goldman Sachs
  6. 6Given 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
  7. 7Implement TrieMediumCoding· Apple, Goldman Sachs
  8. 8Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple
  9. 9Find Largest NumbersMediumCoding· Accenture, Goldman Sachs
  10. 10Given 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
  11. 11Implement a queue using stacks.MediumCoding· Goldman Sachs
  12. 12Given the row and column, return the value at that position in Pascal's triangle.MediumCoding· Goldman Sachs