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
- 14 Keys KeyboardCoding·
Microsoft - 2All Paths from Source Lead to DestinationCoding·
Microsoft - 3Asteroid CollisionMediumCoding·
Amazon, Microsoft - 4Best time to buy and sell stockCoding· JGJMAN Group, MakeMyTrip
- 5Binary Tree Upside DownCoding·
Linkedin, Microsoft - 6CandyCoding·
Microsoft - 7Celebrity ProblemCoding·
Flexport, Microsoft - 8Cheapest flight within K stopsCoding·
Microsoft - 9Check for Contradictions in EquationsCoding·
Microsoft, PhonePe - 10Course Schedule ICoding·
Microsoft, Visa - 11Dijkstra's algorithmCoding·
Atlassian, Google - 12Distinct subsequencesCoding·
Amazon, Microsoft - 13Find The Closest Marked NodeCoding·
Microsoft - 14Find the Kth Lucky NumberCoding·
Microsoft - 15Flip GameCoding·
Microsoft - 16Floyd warshall algorithmCoding·
Microsoft - 17Koko eating bananas.MediumCoding·
Flipkart, Amazon - 18Logger Rate LimiterCoding·
Microsoft - 19Longest happy prefixCoding·
Microsoft - 20Lowest Common Ancestor of a Binary Tree IVCoding·
J.P. Morgan, Microsoft - 21Max Consecutive Ones IICoding·
Microsoft - 22Maximum Product Subarray in an ArrayCoding·
Cisco Meraki, Microsoft - 23Number of Connected Components in an Undirected GraphCoding·
Goldman Sachs, Microsoft - 24Palindrome RemovalCoding·
Microsoft