Skip to content

Tag Archives: frequency-counting

Given an array arr[], integer M and an array query[] containing Q queries, the task is to find the query[i]th occurrence of Mth most frequent… Read More
Given a matrix arr[] of size N*N containing English alphabets characters, the task is to find the frequency of all the matrix elements. Note: Print… Read More
Given an array A[] containing N elements of an array and their frequency in that array (say arr[]), the task is to find the median… Read More
Given an array arr[] of size N such that the sum of all the array elements does not exceed N, and array queries[] containing Q… Read More
Given an array arr[] of size N consisting of positive integers, the task is to check if the array can be sorted in non-decreasing order… Read More
Given a string S of length N consisting of numbers from(0-9) and also two numbers, one is even (say  X)and one is odd (say Y),… Read More
Given an array arr[] of integers N, the task is to find the GCD of all numbers for which it’s value is equal to its… Read More
Given an array arr[] having N integers, and an integer K, the task is to find an array such that it contains a single elements… Read More
 Given an array arr[] of size N, the task is to count the minimum number of elements required to be removed from the given array… Read More
Given an array A[] of length N, the task is to find the minimum possible value of bitwise OR of the elements after removing at… Read More
Given an array arr[] of length N, the task is to find the minimum number of operations to change the array such that each arr[i]… Read More
Given an array nums[], and integer K and X, the task is to find the most frequent element K positions away from X in the… Read More
Given a binary tree of N nodes. Count the frequency of an integer K in the binary tree. Examples:  Input: N = 7, K =… Read More
Given an array of strings arr[] of size N. Each of the strings contains lowercase English letters or numbers only. The task is to find… Read More
Given an array arr[] of N integers. Arrange the array in a way such that the minimum distance among all pairs of same elements is… Read More

Start Your Coding Journey Now!