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
66 questions
- 1Basic Calculator IIICoding·
Goldman Sachs - 2Best time to buy and sell stock IVCoding·
Cisco, Goldman Sachs - 3Better Compression of StringCoding·
Adobe, Amazon - 4Climbing StairsEasyCoding·
Media.net - 5Find minimum in Rotated Sorted ArrayCoding·
Goldman Sachs, ServiceNow - 6House robberCoding·
Goldman Sachs, Google - 7K-th Largest element in an arrayCoding·
Apple, Blinkit - 8Koko eating bananas.MediumCoding·
Flipkart, Amazon - 9Largest rectangle in a histogramCoding·
Goldman Sachs, Porter - 10Minimize Maximum Value in GridCoding·
Goldman Sachs - 11Minimum Window SubstringCoding·
Goldman Sachs, Intuit - 12Number of Connected Components in an Undirected GraphCoding·
Goldman Sachs, Microsoft - 13Number of islandsCoding·
Amazon, Goldman Sachs - 14Pour WaterCoding·
Goldman Sachs - 15Pow(x,n)Coding·
Goldman Sachs, Zoho - 16Check if Grid Satisfies ConditionsEasyCoding·
Goldman Sachs - 17Contains any DuplicatesCoding·
Goldman Sachs - 18Count Submatrices With Equal Frequency of X and YMediumCoding·
Goldman Sachs - 19Detect Cycle Length in a Linked ListCoding·
Goldman Sachs - 20DPCoding·
Amazon, Goldman Sachs - 21Find the root of the largest treeCoding·
Goldman Sachs - 22Gas StationMediumCoding·
Amazon, Cleartrip - 23Group anagramsMediumCoding·
Blinkit, MakeMyTrip - 24Linked List CycleEasyCoding· CCognitree