# Tag Archives: frequency-counting

Given an array arr[] of N elements and an integer K. The task is to find the maximum sum of elements in a subarray of… Read More
Given a string S of lowercase English alphabets, the task is to find the minimum number of characters to be changed such that the left… Read More
Given a string S of lowercase English alphabets, the task is to find the minimum number of characters to be changed such that the left… Read More
Given a string S of lowercase English alphabets, the task is to find the minimum number of characters to be changed such that the left… Read More
Given an array arr[] of size n, The task is to find the GCD of the highest and lowest frequency element in the given array.… Read More
Given an integer array arr[] of size n with only three types of integers 0’s, 1’s, and 2’s. Find the minimum length of the subarray… Read More
Given an array arr containing N positive integers, sort them according to the increasing modulus of their values with their frequencies. Example: Input: arr[]={1, 1,… Read More
Given a number N, the task is to remove the adjacent duplicates of a number N and then sort the digits of the number N… Read More
Given a number N, the task is to convert it into a number in which all distinct digits have the same frequency, by rotating its… Read More
Given an array, find the least frequent element in it. If there are multiple elements that appear least number of times, print any one of… Read More
Given an array, find the least frequent element in it. If there are multiple elements that appear least number of times, print any one of… Read More
Given an array, find the least frequent element in it. If there are multiple elements that appear least number of times, print any one of… Read More
Given an array, find the least frequent element in it. If there are multiple elements that appear least number of times, print any one of… Read More
Given an array of strings arr[], containing N strings, the task is to count the number of strings that do not contain both the uppercase… Read More
Given an array arr[] of integers of size N and a single digit integer K. The task is to find the total count of occurrences… Read More