S.No |
Interview Question |
Number of times candidates experienced this question in interviews |
1 | Move all negative elements to one side of array | 10180 |
2 | Count Pairs With Given Sum | 5421 |
3 | First element occurring k times in an array | 4158 |
4 | Find a Fixed Point in a Given Array | 2193 |
5 | Distinct adjacent elements in an array | 2084 |
6 | Iterative Method to find Height of Binary Tree | 2062 |
7 | Balanced Expression with Replacement | 1892 |
8 | Count pair with Given Sum | 1637 |
9 | Sort 0s 1s and 2s in an Array | 1604 |
10 | Maximum difference between two elements such as larger element comes after smaller | 1594 |
11 | Print Fibonacci sequence using 2 variables | 1587 |
12 | Largest Sum Contiguous Subarray | 1544 |
13 | Check for Balanced Parentheses in an Expression | 1491 |
14 | Check if Two Expressions With Brackets are Same | 1485 |
15 | Find all triplets with zero sum | 1458 |
16 | Minimum Characters to be Removed to Make a Binary String Alternate | 1373 |
17 | Find Nth Node | 1317 |
18 | Non-overlapping sum of two sets | 1303 |
19 | Boundary Traversal of binary tree | 1272 |
20 | How to check if two given sets are disjoint? | 1262 |
21 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 1261 |
22 | Rearrange a binary string as alternate x and y occurrences | 1245 |
23 | Level order traversal using two Queues | 1229 |
24 | Maximum difference between first and last indexes of an element in array | 1144 |
25 | Count Primes in Ranges | 1098 |