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
19 questions
- 1Koko eating bananas.MediumCoding·
Flipkart, Amazon - 2Top k frequent elementsMediumCoding·
Amazon, Apple - 3Product of Array Except SelfMediumCoding·
PayPal, Target - 4Given an array of integers and an integer k, find the kth largest element in the array.MediumCoding·
Meta, Microsoft - 5Given two empty jugs with capacities a and b liters and an infinite water supply, determine a way to end up with exactly X liters of water.MediumCoding·
Microsoft - 6Explain the differences between stack and heap memory allocation.MediumCoding·
Apple, Microsoft - 7Find the longest substring without repeating characters.MediumCoding·
Apple, Intuit - 8Implement LRU Cache.HardCoding·
Accenture, Adobe - 9Print all words from a dictionary that can be found on a given Boggle board.MediumCoding·
Microsoft - 10How would you store a list of numbers as a single number?MediumCodingTechnical·
Atlassian, Microsoft - 11Determine if an array of integers from 1 to n contains a duplicate in constant time and space.MediumCoding·
Adobe, Apple - 12Given an array of integers, return the pairs with the minimum absolute difference between them.MediumCoding·
Microsoft - 13Given an integer, reverse it. Integers are within range [-2^15, 2^15 - 1].MediumCoding·
Microsoft - 14Construct a binary tree given its preorder and inorder traversals.MediumCoding·
Adobe, Amazon - 15Design LFU cache.MediumCodingSystem design·
Microsoft - 16Explain multithreading.MediumCoding·
Microsoft, Nvidia - 17Find the number of rotations in a circularly sorted array.MediumCoding·
AMD, Microsoft - 18Implement a function to justify a list of words within a given width.MediumCoding·
Google, Microsoft - 19Reverse a SentenceEasyCoding·
Adobe, Apple