S.No |
Interview Question |
Number of times candidates experienced this question in interviews |
1 | Smallest Positive Number Missing in an Unsorted Array | 2267 |
2 | First non Repeating Element | 2134 |
3 | Find the Number Occurring Odd Number of Times in an Array | 1950 |
4 | Generate all Binary Strings Without Consecutive 1’s | 1842 |
5 | Second Most Repeated Word in a Sequence | 1798 |
6 | Program for Bridge and Torch problem | 1486 |
7 | Implement Two Stacks in an Array | 1366 |
8 | Reverse a linked list | 1338 |
9 | Count of index pairs with equal elements in an array | 1328 |
10 | Find elements which are present in first array and not in second | 1275 |
11 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 1219 |
12 | Iterative Method to find Height of Binary Tree | 1187 |
13 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 1151 |
14 | Sort 0s 1s and 2s in an Array | 1139 |
15 | Check if a given array contains duplicate elements within k distance from each other | 1092 |
16 | Queries for counts of array elements with values in given range | 1077 |
17 | Find distinct elements common to all rows of a matrix | 1035 |
18 | Check for Balanced Parentheses in an Expression | 1000 |
19 | Balanced Expression with Replacement | 964 |
20 | Largest Sum Contiguous Subarray | 963 |
21 | Find Nth Node | 925 |
22 | First missing positive | 914 |
23 | Check if Two Expressions With Brackets are Same | 902 |
24 | The Knapsack Problem | 900 |
25 | Non-overlapping sum of two sets | 883 |
26 | How to check if two given sets are disjoint? | 870 |
27 | Tree Traversal (Preorder, Inorder & Postorder) | 810 |
28 | Next Greater Element in an Array | 779 |
29 | Products of ranges in an array | 775 |
30 | Given a binary tree, how do you remove all the half nodes? | 767 |