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
- 25Longest Cycle in a GraphHardCoding·
Goldman Sachs - 26MatrixCoding·
Goldman Sachs, Swiggy - 27Maximize Amount After Two Days of ConversionsMediumCoding·
Goldman Sachs - 28Maximum number of coinsCoding·
Goldman Sachs - 29Maximum Number of Jumps to Reach the Last IndexMediumCoding·
Goldman Sachs - 30Merge two sorted arrays without extra spaceCoding·
Goldman Sachs - 31Minimum insertions to make string palindromeCoding·
Goldman Sachs, Oracle - 32Minimum-length substringCoding·
Goldman Sachs - 33Minimum Steps to Reach a Target with Variable JumpsCoding·
Goldman Sachs, Zeta - 34Peak Index in a Mountain ArrayMediumCoding·
Goldman Sachs - 35Shortest Subarray to be Removed to Make Array SortedMediumCoding·
Goldman Sachs - 36Sort Characters by FrequencyCoding·
Goldman Sachs - 37Stack monotonicCoding·
Goldman Sachs - 38Unique SubstringsCoding·
Goldman Sachs - 39Given the root of a binary tree of integers, return the maximum path sum.MediumCoding·
Adobe, Apple - 40Find the container with the maximum volume of water.MediumCoding·
Apple, Goldman Sachs - 41Design a distributed logging system.HardSystem design·
Amazon, Goldman Sachs - 42Design Git.HardSystem design·
Goldman Sachs - 43Implement a hashmap without using any libraries.HardCoding·
Apple, Goldman Sachs - 44Explain the differences between an interface and an abstract class.MediumCodingTechnical·
Goldman Sachs, Microsoft - 45Explain Bayes' theorem.MediumTechnicalData·
Goldman Sachs, LinkedIn - 46Find a triplet in an array with a given sum.MediumCoding·
Adobe, Goldman Sachs - 47Given 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 - 48Implement TrieMediumCoding·
Apple, Goldman Sachs