## 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 numbers in range such that digits in it and it's product with q are unequal
- Find two numbers whose divisors are given in a random order
- Find alphabet in a Matrix which has maximum number of stars around it
- Count occurrences of a string that can be constructed from another given string
- Find array elements with frequencies in range [l , r]
- Find the element having different frequency than other array elements
- Find the player who rearranges the characters to get a palindrome string first
- 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
- Replace every elements in the array by its frequency in the array
- Count Triplets such that one of the numbers can be written as sum of the other two
- Sum of elements in an array with frequencies greater than or equal to that element
- Longest Subsequence with at least one common digit in every element
- Count pairs from two arrays having sum equal to K
- Count valid pairs in the array satisfying given conditions
- Find the count of palindromic sub-string of a string in its sorted form
- Make palindromic string non-palindromic by rearranging its letters
- Number of sub-arrays that have at least one duplicate
- Replace each element by the difference of the total size of the array and frequency of that element
- Sum of elements in an array having prime frequency
- Frequency of each element of an array of small ranged values
- Find maximum number of elements such that their absolute difference is less than or equal to 1
- Lexicographically largest string formed from the characters in range L and R
- Count pairs in an array such that LCM(arr[i], arr[j]) > min(arr[i],arr[j])
- Remove elements from the array whose frequency lies in the range [l, r]
- Python | Element with largest frequency in list
- Find the smallest after deleting given elements
- Remove elements from the array which appear more than k times
- Generate a number such that the frequency of each digit is digit times the frequency in given number

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 »