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
21 questions
- 1Climbing StairsEasyCoding·
Media.net - 2Koko eating bananas.MediumCoding·
Flipkart, Amazon - 3Group anagramsMediumCoding·
Blinkit, MakeMyTrip - 4Linked List CycleEasyCoding· CCognitree
- 5Given the root of a binary tree of integers, return the maximum path sum.MediumCoding·
Adobe, Apple - 6Find the container with the maximum volume of water.MediumCoding·
Apple, Goldman Sachs - 7Implement a hashmap without using any libraries.HardCoding·
Apple, Goldman Sachs - 8Find a triplet in an array with a given sum.MediumCoding·
Adobe, Goldman Sachs - 9Given 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 - 10Implement TrieMediumCoding·
Apple, Goldman Sachs - 11Find the longest palindromic subsequence using dynamic programming.MediumCoding·
Adobe, Apple - 12Implement LRU Cache.HardCoding·
Accenture, Adobe - 13Given 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 - 14Calculate the trapped rainwater between bars in a given array.HardCoding·
Adobe, Amazon - 15Find Largest NumbersMediumCoding·
Accenture, Goldman Sachs - 16Given an array, find the two sum.EasyCoding·
Adobe, Amazon - 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 - 18Implement a queue using stacks.MediumCoding·
Goldman Sachs - 19Given the row and column, return the value at that position in Pascal's triangle.MediumCoding·
Goldman Sachs - 20Valid ParenthesesEasyCoding·
Apple, Booking.com - 21Is this a valid palindrome?EasyCoding·
Adobe, Apple