## Find the element having different frequency than other array elements

Given an array of N integers. Each element in the array occurs same number of times except one element. The task is to find this… Read More »

- Load Factor and Rehashing
- Design a data structure for LRU Cache
- Count number of Distinct Substring in a String
- Hashing in Java
- Sum of all odd frequency elements in an array
- Elements that occurred only once in the array
- For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
- Print all pairs with given sum
- LFU (Least Frequently Used) Cache Implementation
- Design a Hit Counter
- Sort elements by frequency | Set 5 (using Java Map)
- Count numbers in range such that digits in it and it's product with q are unequal
- Remove duplicates from unsorted array
- Replace duplicates with greater than previous duplicate value
- Microsoft Interview experience | Set 178 (On-Campus Internship for IDC)
- Preorder from Inorder and Postorder traversals
- Find array elements with frequencies in range [l , r]
- Replace repeating elements with greater that greatest values
- Longest subarray having maximum sum
- MD5 hash in Java
- Longest substring with count of 1s more than 0s
- Count the number of vowels occurring in all the substrings of given string
- Applications of Hashing
- Check if the frequency of all the digits in a number is same
- Reduce the string by removing K consecutive identical characters
- Number of anomalies in an array
- Majority element in a circular array of 0's and 1's
- Replace every elements in the array by its frequency in the array
- Find the largest area rectangular sub-matrix whose sum is equal to k
- Remove even frequency characters from the string

Given an array of N integers. Each element in the array occurs same number of times except one element. The task is to find this… Read More »

Given an array containing N distinct elements. There are M queries, each containing an integer X and asking for the index of X in the… Read More »

Given an array where elements in small range. The maximum element in the array does not go beyond size of array. Find frequencies of elements.… Read More »

Given a string. The task is to find the maximum occurred substring with a maximum length. These occurrences can overlap. Examples: Input: str = “abab”… Read More »

Given an array arr, the task is to find the sum of the elements which have prime frequencies in the array. Note: 1 is neither… Read More »

Given a string str containing only lowercase English alphabets, the task is to find the sum and product of all the prime frequencies of the… Read More »

Given an array of N numbers, the task is to print all the numbers greater than 1 which divide the maximum of array elements. Examples:… Read More »

Given an unsorted array A[]. The task is to print all unique pairs in the unsorted array with equal sum. Note: Print the result in… Read More »

Given an integer and two arrays and , the task is to count the total pairs (formed after choosing an element from and another from… Read More »

Given an array of N elements, the task is to check if the array has an element which is equal to the sum of all… Read More »

Given the number of questions as , and marks for correct answer as and marks for the incorrect answer. One can either attempt to solve… Read More »

Given a sorted array (with unique entries), we have to find whether there exist an element(say X) which is exactly half the sum of all… Read More »

Given a string of length N of lowercase characters containing 0 or more vowels, the task is to find the count of vowels occurred in… Read More »

Given two strings, the task is to check whether the frequencies of a character(for each character) in one string is a multiple or a factor… Read More »

Given two arrays A and B of positive integers, elements of array B can be mapped to elements of array A only if both the… Read More »