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
37 questions
- 1Climbing StairsEasyCoding·
Media.net - 2Merge two sorted listsEasyCoding·
Intuit, Oracle - 3Top k frequent elementsMediumCoding·
Amazon, Apple - 4Group anagramsMediumCoding·
Blinkit, MakeMyTrip - 5Product of Array Except SelfMediumCoding·
PayPal, Target - 601 Matrix: find the nearest zero for every cellMediumCoding·
Adobe, Oracle - 7Given the root of a binary tree of integers, return the maximum path sum.MediumCoding·
Adobe, Apple - 8Build a Basic Regex ParserHardCoding·
Adobe, Apple - 9Print all combinations of numbers from 1 to n that sum to n.MediumCoding·
Adobe, Apple - 10Cycle Detection in Package Manager.MediumCoding·
Adobe - 11Explain how to find a target sum in an array.MediumCoding·
Adobe, Google - 12Find the DuplicatesEasyCoding·
Adobe, Apple - 13Find a triplet in an array with a given sum.MediumCoding·
Adobe, Goldman Sachs - 14Generate ParenthesesMediumCoding·
Adobe, Google - 15Given 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 - 16PermutationsMediumCoding·
Adobe, Apple - 17Find the longest palindromic subsequence using dynamic programming.MediumCoding·
Adobe, Apple - 18Implement LRU Cache.HardCoding·
Accenture, Adobe - 19Find the maximum subarray sum.MediumCoding·
Adobe, Apple - 20Merge k sorted linked lists.HardCoding·
Adobe, Apple - 21Move all zeros to the end of an array.EasyCoding·
Adobe, Amazon - 22Given 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 - 23Sudoku SolverHardCoding·
Adobe, Apple - 24Calculate the trapped rainwater between bars in a given array.HardCoding·
Adobe, Amazon