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
239 questions
- 25Lowest Common Ancestor of a Binary Tree IVCoding·
J.P. Morgan, Microsoft - 26Max Consecutive Ones IICoding·
Microsoft - 27Maximum Product Subarray in an ArrayCoding·
Cisco Meraki, Microsoft - 28Number of Connected Components in an Undirected GraphCoding·
Goldman Sachs, Microsoft - 29Palindrome RemovalCoding·
Microsoft - 30Reachable Nodes Before DestructionCoding·
Microsoft - 31Rod cutting problemCoding·
Microsoft - 32Rotten OrangesCoding·
Amazon, Informatica - 33Single element in sorted arrayCoding·
Microsoft - 34Sort an array of 0's 1's and 2'sCoding·
Microsoft, Nvidia - 35Subarrays with K Different IntegersHardCoding· HHashedIn, Microsoft
- 36Top k frequent elementsMediumCoding·
Amazon, Apple - 37Topological sort or Kahn's algorithmCoding·
Amazon, Microsoft - 38ArrayCoding·
J.P. Morgan, Microsoft - 39BacktrackingCoding·
Microsoft - 40Binary Search and HeapsCoding·
Microsoft - 41Binary Tree Maximum Path SumHardCoding·
Qualcomm, DoorDash - 42Bottom View of a Binary TreeCoding·
Microsoft - 43Count Ways to Distribute CandiesCoding·
Microsoft - 44Cycle Length Queries in a TreeHardCoding·
Microsoft - 45Design Video Sharing PlatformHardCoding·
Microsoft - 46Encode and Decode StringsCoding·
Amazon, Microsoft - 47Extra Characters in a StringMediumCoding·
Microsoft - 48Find Pivot IndexEasyCoding·
Microsoft