S.No |
Interview Question |
Number of times candidates experienced this question in interviews |
1 | Maximum occurring character in a string | 8095 |
2 | First element occurring k times in an array | 2605 |
3 | Next Permutation Leetcode Solution | 2463 |
4 | Find Leaders in an Array | 2204 |
5 | Rabin Karp Algorithm | 2172 |
6 | KMP Algorithm | 1822 |
7 | Minimum number of distinct elements after removing m items | 1727 |
8 | Reverse words in a string | 1449 |
9 | Length of the largest subarray with contiguous elements | 1307 |
10 | Gold Mine Problem | 1215 |
11 | Word Wrap Problem | 1194 |
12 | Maximum path sum in a triangle | 1146 |
13 | Maximum possible difference of two subsets of an array | 1136 |
14 | Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space | 1095 |
15 | Queries for counts of array elements with values in given range | 1072 |
16 | Count subarrays having total distinct elements same as original array | 1015 |
17 | Count pairs from two sorted arrays whose sum is equal to a given value x | 976 |
18 | Largest Sum Contiguous Subarray | 960 |
19 | Queue based approach for first non-repeating character in a stream | 916 |
20 | Print Fibonacci sequence using 2 variables | 912 |
21 | Next Permutation LeetCode Solution | 899 |
22 | Subset with sum divisible by m | 874 |
23 | Next Greater Element in an Array | 779 |
24 | Given a binary tree, how do you remove all the half nodes? | 766 |
25 | Boundary Traversal of binary tree | 742 |
26 | Maximum subsequence sum such that no three are consecutive | 734 |
27 | Diagonal Traversal of Binary Tree | 640 |
28 | Height of a generic tree from parent array | 640 |
29 | Check in binary array the number represented by a subarray is odd or even | 628 |
30 | Find postorder traversal of BST from preorder traversal | 607 |