S.No |
Interview Question |
Number of times candidates experienced this question in interviews |
1 | Maximum occurring character in a string | 15730 |
2 | Next Permutation Leetcode Solution | 6181 |
3 | First element occurring k times in an array | 4150 |
4 | Rabin Karp Algorithm | 3940 |
5 | Length of the largest subarray with contiguous elements | 3648 |
6 | KMP Algorithm | 3462 |
7 | Find Leaders in an Array | 3291 |
8 | Minimum number of distinct elements after removing m items | 3196 |
9 | Maximum possible difference of two subsets of an array | 3150 |
10 | Reverse words in a string | 2582 |
11 | Word Wrap Problem | 2579 |
12 | Next Permutation LeetCode Solution | 2285 |
13 | Queries for counts of array elements with values in given range | 2180 |
14 | Count subarrays having total distinct elements same as original array | 2029 |
15 | Gold Mine Problem | 2012 |
16 | Maximum path sum in a triangle | 2002 |
17 | Count pairs from two sorted arrays whose sum is equal to a given value x | 1950 |
18 | Queue based approach for first non-repeating character in a stream | 1785 |
19 | Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space | 1749 |
20 | Print Fibonacci sequence using 2 variables | 1581 |
21 | Largest Sum Contiguous Subarray | 1538 |
22 | Subset with sum divisible by m | 1369 |
23 | Given a binary tree, how do you remove all the half nodes? | 1294 |
24 | Maximum subsequence sum such that no three are consecutive | 1285 |
25 | Boundary Traversal of binary tree | 1272 |
26 | Next Greater Element in an Array | 1160 |
27 | Maximum sum bitonic subarray | 1110 |
28 | Diagonal Traversal of Binary Tree | 1051 |
29 | Height of a generic tree from parent array | 1026 |
30 | Check in binary array the number represented by a subarray is odd or even | 1012 |