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

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