# Tag Archives: frequency-counting

Given an array arr[] of length N, two arrays start[] and end[] of size M each where {start[i], end[i]} denotes a subarray of arr[] and… Read More
Given an array A[] of size N, and two integers K and C, the task is to check if all the elements of the array… Read More
Given an array arr[] of size N that contains -1 and all positive integers, the task is to modify the array and print the final… Read More
Given an array A[] of size N, and an integer X, the following operation can be performed on that array: Choose any element, say Y… Read More
Given an array A of size N, the task is to find the minimum number of operations required to make array A empty. The following… Read More
Given an array A, the task is to find elements with the occurrence at least K times the frequency of the least occurring element in… Read More
Given two arrays of strings A[] and B[] containing only small case letters, the task is to count the number of strings in A[] such… Read More
Given an arr[] of size N and an integer, K, the task is to find the maximum possible value of MEX by adding or subtracting… Read More
Given an array A[] of length N, the task is to minimize the maximum frequency of any array element by performing the following operation only… Read More
Given an array arr[] of size N, the task is to check if for all distinct triplets of indices i, j, k, [  0 ≤… Read More
Given a string S of lowercase English characters, find out whether the number of the letters whose frequencies in the string have the same parity as their positions in the… Read More
Given an array of N strings, the task is to find if it is possible to make all the strings equal by performing the following… Read More
Given three integers N, X, Y, and an array arr[] of size N, the task is to find the count of subarrays having at least… Read More
Geek is a big fan of the Soccer League. Recently he has got a document containing the scores of all the matches played in the… Read More
Given an array arr[] containing N email addresses with different domains, the task is to find the unique domains and their frequencies from the list… Read More