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
81 questions
- 25Reachable Nodes Before DestructionCoding·
Microsoft - 26Rod cutting problemCoding·
Microsoft - 27Rotten OrangesCoding·
Amazon, Informatica - 28Single element in sorted arrayCoding·
Microsoft - 29Sort an array of 0's 1's and 2'sCoding·
Microsoft, Nvidia - 30Subarrays with K Different IntegersHardCoding· HHashedIn, Microsoft
- 31Top k frequent elementsMediumCoding·
Amazon, Apple - 32Topological sort or Kahn's algorithmCoding·
Amazon, Microsoft - 33ArrayCoding·
J.P. Morgan, Microsoft - 34BacktrackingCoding·
Microsoft - 35Binary Search and HeapsCoding·
Microsoft - 36Binary Tree Maximum Path SumHardCoding·
Qualcomm, DoorDash - 37Bottom View of a Binary TreeCoding·
Microsoft - 38Count Ways to Distribute CandiesCoding·
Microsoft - 39Cycle Length Queries in a TreeHardCoding·
Microsoft - 40Design Video Sharing PlatformHardCoding·
Microsoft - 41Encode and Decode StringsCoding·
Amazon, Microsoft - 42Extra Characters in a StringMediumCoding·
Microsoft - 43Find Pivot IndexEasyCoding·
Microsoft - 44Find the Winner of an Array GameMediumCoding·
Microsoft - 45Graph basedCoding·
Microsoft, Spinny - 46Grid with obstaclesCoding·
Microsoft - 47HashMap + Doubly Linked ListCoding·
Microsoft - 48Insert Delete GetRandom O(1) - Duplicates allowedHardCoding·
Microsoft