## Minimum operations to make counts of remainders same in an array

Given an array arr[] of N integers and an integer M where N % M = 0. The task is to find the minimum number… Read More »

- Sum of all odd frequency elements in an array
- Count Occurences of Anagrams
- For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
- Count numbers in range such that digits in it and it's product with q are unequal
- Counting frequencies of array elements
- Find two numbers whose divisors are given in a random order
- Count occurrences of a string that can be constructed from another given string
- Find the player who rearranges the characters to get a palindrome string first
- Find array elements with frequencies in range [l , r]
- Find alphabet in a Matrix which has maximum number of stars around it
- Find the element having different frequency than other array elements
- Minimize the number of replacements to get a string with same number of 'a', 'b' and 'c' in it
- Find a number that divides maximum array elements
- Longest common anagram subsequence from N strings
- Replace every elements in the array by its frequency in the array
- Frequency Measuring Techniques for Competitive Programming
- Count valid pairs in the array satisfying given conditions
- Count Triplets such that one of the numbers can be written as sum of the other two
- Longest Subsequence with at least one common digit in every element
- Sum of elements in an array with frequencies greater than or equal to that element
- Find the count of palindromic sub-string of a string in its sorted form
- Frequency of each element of an array of small ranged values
- Make palindromic string non-palindromic by rearranging its letters
- Lexicographically largest string formed from the characters in range L and R
- Count pairs from two arrays having sum equal to K
- Number of sub-arrays that have at least one duplicate
- Find maximum number of elements such that their absolute difference is less than or equal to 1
- Sum of elements in an array having prime frequency
- Remove elements from the array whose frequency lies in the range [l, r]
- Construct a frequency array of digits of the values obtained from x^1, x^2, ........, x^n

Given an array arr[] of N integers and an integer M where N % M = 0. The task is to find the minimum number… Read More »

Given an array of N elements and Q queries, where each query contains an integer K. For each query, the task is to find the… Read More »

Given N strings consisting of lowercase letters of the English alphabet. The task is to find how many strings out of these N strings are… Read More »

Given a string str containing lowercase alphabets (a – z). The task is to print the string after rearranging some characters such that the string… Read More »

Given two strings str1 and str2 where str1 being the parent string. The task is to find out the number of string as str2 that… Read More »

Given an array of N numbers which has all divisors of two numbers in any order. The task is to find the two numbers whose… Read More »

Given a string consisting of only three possible characters ‘a’, ‘b’ or ‘c’. The task is to replace characters of the given string with ‘a’,… Read More »

Given a string str, the task is to count the maximum number of possible operations that can be performed on str. An operation consists of… Read More »

Given an array arr[], the task is to find the count of pairs from the array such that LCM(arr[i], arr[j]) > min(arr[i], arr[j]) Note: Pairs… Read More »

Given an array of integers arr[], the task is to count the number of valid pairs of elements from arr. A pair (arr[x], arr[y]) is… Read More »

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 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 a matrix mat consisting of * and lowercase English alphabets, the task is to find the character which has the maximum number of *… 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 »

This is one of the most essential operation that programmer quite often comes in terms with. Be it development or competitive programming, this utility is… Read More »