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
56 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 - 41Implement a hashmap without using any libraries.HardCoding·
Apple, Goldman Sachs - 42Explain the differences between an interface and an abstract class.MediumCodingTechnical·
Goldman Sachs, Microsoft - 43Find a triplet in an array with a given sum.MediumCoding·
Adobe, Goldman Sachs - 44Given 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 - 45Implement TrieMediumCoding·
Apple, Goldman Sachs - 46Find the longest palindromic subsequence using dynamic programming.MediumCoding·
Adobe, Apple - 47Implement LRU Cache.HardCoding·
Accenture, Adobe - 48Given 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