# Tag Archives: frequency-counting

Given an array arr[] consisting of N integers and an integer K, the task is to make all array elements equal to K by repetedly… Read More
Given a string str and an integer K, the task is to find the length of the longest substring S such that every character in… Read More
Given a string S of length N and an integer K, the task is to find the frequency of the lexicographically Kth smallest character present… Read More
Given an array arr[] of size N, the task is to print the minimum possible count of strictly increasing subsequences present in the array. Note: It… Read More
Given a string S which is an infinite wraparound string of the string “abcdefghijklmnopqrstuvwxyz”, the task is to count the number of unique non-empty substrings… Read More
Given an array arr[] of size N, the task is for every non-repeating array element is to find the highest power of 2 that does… Read More
Given two strings str1 and str2 of the lengths of N and M respectively, the task is to find the length of the longest anagram… Read More
Given an array arr[] of size N, the task is to count the number of unique quadruples (a, b, c, d) from the array such… Read More
Given an array arr[] consisting of N intervals of the form of [L, R], where L, R denotes the start and end positions of the… Read More
Given an array A[] consisting of N integers, the task is to count the number of pairs (i, j) such that i < j, and… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the longest subsequence of the given array such… Read More
Given two strings A and B of length N and M respectively and an array arr[] consisting of K integers, the task is to check… Read More
Given a string str, the task is to find all the duplicate characters present in a given string in lexicographical order without using any additional… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to count the number of pairs satisfying the equation 2*(arr[i]… Read More
Given an array arr[] consisting of N integers, the task is to find the minimum possible sum of the array by removing all occurrences of… Read More