Question Bank
Filter real, curated interview questions by topic, difficulty, and type. Open any question to practice and rate your confidence.
Filter by company and topic2 active
RecentMost viewed
15 questionsFree6Locked9
- Reverse a singly linked list, iteratively and recursively.BeginnerDsa· codingFreeReported frequent at Microsoft
- Validate whether a binary tree is a valid binary search tree.
[DFS]IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Microsoft - Count the number of islands in a 2D grid of land and water.
[BFS/DFS]IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Amazon+2 - Given an input string, reverse the order of the words (Reverse Words in a String).BeginnerDsa· codingFreeReported frequent at Microsoft
- Implement atoi: convert a string to a 32-bit signed integer, handling whitespace, sign, and overflow (String to Integer).IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Apple+1
- Given a reference to a node in a connected undirected graph, return a deep copy (clone) of the graph.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Microsoft+1
- Design an algorithm to serialize a binary tree to a string and deserialize it back.AdvancedDsa· coding₹499 (Pro plan required)Reported frequent at Microsoft
- Find the lowest common ancestor (LCA) of two given nodes in a binary tree.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Flipkart+2
- Given n non-negative bar heights, compute how much rainwater can be trapped between them (Trapping Rain Water).AdvancedDsa· coding₹499 (Pro plan required)Reported frequent at Flipkart+1
- Microsoft OA: Which traversal of a binary search tree visits nodes in ascending sorted order of their keys?BeginnerDsa· multiple choiceFree
- Microsoft OA: Reversing a singly linked list iteratively requires which minimum time and extra space?IntermediateDsa· multiple choiceFree
- In a binary tree, find the maximum sum of a path between any two leaves; as a follow-up, return the path itself.AdvancedDsa· coding₹499 (Pro plan required)
- Two nodes of a binary search tree were swapped by mistake. Find them and fix the tree without changing its structure.AdvancedDsa· coding₹499 (Pro plan required)
- Given a string, find its first non-repeating character.BeginnerDsa· codingFree
- Find the maximum sum of a contiguous subarray (Kadane's algorithm).BeginnerDsa· codingFree