## Sum of elements in an array with frequencies greater than or equal to that element

Given an array arr[] of N integers. The task is to find the sum of the elements which have frequencies greater than or equal to… Read More »

- Load Factor and Rehashing
- Design a data structure for LRU Cache
- Count number of Distinct Substring in a String
- Hashing in Java
- Print all pairs with given sum
- Elements that occurred only once in the array
- Sum of all odd frequency elements in an array
- Design a Hit Counter
- Sort elements by frequency | Set 5 (using Java Map)
- For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
- LFU (Least Frequently Used) Cache Implementation
- Remove duplicates from unsorted array
- Count numbers in range such that digits in it and it's product with q are unequal
- 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
- Applications of Hashing
- MD5 hash in Java
- Find the element having different frequency than other array elements
- Longest substring with count of 1s more than 0s
- Maximum possible time that can be formed from four digits
- Count the number of vowels occurring in all the substrings of given string
- Check if the frequency of all the digits in a number is same
- Reduce the string by removing K consecutive identical characters
- Replace every elements in the array by its frequency in the array
- HashSet vs TreeSet in Java
- Number of anomalies in an array

Given an array arr[] of N integers. The task is to find the sum of the elements which have frequencies greater than or equal to… Read More »

Given an array arr[] having 4 integer digits only. The task is to return the maximum 24 hour time that can be formed using the… Read More »

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 »