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 1Medium 9Hard 2
Filters · onDifficulty, topic, company
17 questions
- 1LRU CacheMediumCoding·
Adobe, Amazon - 2Median of 2 sorted arraysCoding·
PayPal, Paytm - 3Reverse Words in a String IICoding·
PayPal - 4Best Time to Buy and Sell StockCoding·
PayPal, Swiggy - 5Longest Increasing SubsequenceMediumCodingAI ML·
Atlassian, Meta - 6Product of Array Except SelfMediumCoding·
PayPal, Target - 7Spiral MatrixCoding·
Meta, PayPal - 8Valid SudokuMediumCoding·
PayPal - 9Zigzag ConversionCoding·
PayPal - 10Given a castle with rooms named after flowers where each room has an instruction to the next room, write an algorithm to find the rooms containing treasure.MediumCoding·
PayPal - 11Find the longest substring without repeating characters.MediumCoding·
Apple, Intuit - 12Implement LRU Cache.HardCoding·
Accenture, Adobe - 13Squares of sorted arrayMediumCoding·
Meta, PayPal - 14Calculate the trapped rainwater between bars in a given array.HardCoding·
Adobe, Amazon - 15Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding·
Adobe, Apple - 16Given an array, find the two sum.EasyCoding·
Adobe, Amazon - 17Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding·
Adobe, Amazon