Skip to content

# Tag Archives: frequency-counting

Given an array of strings arr[][] of size N and a string S, the task is to find the number of strings from the array… Read More
Given an array arr[] of integers, the task is to find the absolute difference between the sum of all odd frequent array elements and the… Read More
Given two arrays A[] and B[] consisting of N integers, the task is to count pairs (A[i], B[j]) with even and odd product and print… Read More
Given a binary string S of length N, the task is to count the minimum number substrings of S that is required to be reversed… Read More
Given two binary strings A and B of length N, the task is to check if the string A can be converted to B by… Read More
Given an array arr[] of size N and an integer K, the task is to find the count of distinct pairs in the array whose… Read More
Given two arrays, arr[] and brr[] of size N and M respectively, the task is to find the count of pairs (arr[i], brr[j]) such that… Read More
Given an array arr[] of size N and an integer T representing the count of threads, the task is to find all non-repeating array elements… Read More
Given an array of strings arr[], the task is to find the count of distinct strings present in the array using polynomial rolling hash function.… Read More
Given an array arr[] of size N, the task is to find the maximum frequency of any array element by incrementing or decrementing each array… Read More
Given an array arr[] of size N, the task is to find the minimum count of array elements required to be removed such that frequency… Read More
Given an array of equal-length strings, arr[] of size N, the task is to check if all the strings can be made equal by repeatedly… Read More
Given a string S consisting of ‘X’, ‘Y’ and ‘Z’ only, the task is to convert S to a string consisting of only a single… Read More
Given an array of strings arr[], the task is to print all unique strings that are present in the given array. Examples: Input: arr[] =… Read More
Given an integer target and an array arr[] consisting of N positive integers where arr[i] denotes the time required to score 1 point for the… Read More