# Tag Archives: frequency-counting

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
Given a binary array arr[] of size N which is starting from index 0, the task is to reach the end of the array in… Read More
Given a 2-dimensional integer array arr[] representing N ranges, each of type [starti, endi] (starti, endi ≤ 109) and Q queries represented in array query[],… Read More
Given an array arr of length N of distinct numbers and an integer X, the task is to find the minimum number of elements that… Read More
Given an array arr[] of size N and three integers X, Y and K, the task is to count the number of pairs (i, j)… Read More
Given a string s of length N, containing digits written in words but in jumbled form, the task is to find out the digits present… Read More
Given a 3D array of size N*M*P consisting only of English alphabet characters, the task is to print the frequency of all the elements in… Read More