## 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 »

- k-th missing element in an unsorted array
- Find the longest string that can be made up of other strings from the array
- Minimum length substring with exactly K distinct characters
- Rearrange characters in a string such that no two adjacent are same using hashing
- Flip minimum signs of array elements to get minimum sum of positive elements possible
- Sum of nodes in bottom view of Binary Tree
- Count duplicates in a given linked list
- Sum of nodes in top view of binary tree
- Split the array elements into strictly increasing and decreasing sequence
- Find uncommon characters of the two strings | Set 2
- Maximum length of the sub-array whose first and last elements are same
- Design a stack which can give maximum frequency element
- Count equal pairs from given string arrays
- Minimum number of given operations required to convert a permutation into an identity permutation
- Remove all occurrences of any element for maximum array sum
- Count of pairs of strings which differ in exactly one position
- Minimum Bitwise XOR operations to make any two array elements equal
- Two equal sum segment range queries
- Longest subsequence such that every element in the subsequence is formed by multiplying previous element with a prime
- Minimum changes required to make a Catalan Sequence
- Count all elements in the array which appears at least K times after their first occurrence
- Count of pairs between two arrays such that the sums are distinct
- Partiton the string in two parts such that both parts have at least k different characters
- Minimum number of given operations required to reduce the array to 0 element
- Find the lexicographically smallest sequence which can be formed by re-arranging elements of second array
- Find d to maximize the number of zeros in array c[] created as c[i] = d*a[i] + b[i]
- Maximum length of a sub-array with ugly numbers
- Print characters having odd frequencies in order of occurrence
- Rearrange given string to maximize the occurrence of string t
- Number of Positions to partition the string such that atleast m characters with same frequency are present in each substring

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 the correct answer as and marks for the incorrect answer. One can either attempt to… 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 »