Skip to content

Tag Archives: frequency-counting

Given an array, arr[] consisting of N strings where each character of the string is lower case English alphabet, the task is to store and… Read More
Given a string S of length N, where each character of the string is either equal to ‘L’, ‘R’ or ‘?’, the task is to… Read More
Given a string S consisting of N digits from [1, 9] and a positive integer K and X. Every day each character of the string… Read More
Given an array arr[] of N integers, the task is to find the maximum prefix length of the array such that removing exactly one element… Read More
Given an array arr[] of size N and an integer K, the task is to check whether it’s possible to split the array into strictly… Read More
Given an array arr[] consisting of N integers, the task is to split the array into the minimum number of disjoint groups, such that differences… Read More
Given two strings S1 and S2 consisting of N and M characters, the task is to check if the string S1 can be made equal… Read More
Given an array arr[] consisting of N integers, the task is to partition the array into two subsets such that the count of unique elements… Read More
Given a sorted array arr[] of size N, the task is to print all the unique elements in the array. An array element is said… Read More
Given an array arr[] of size N, (where 0<A[i]<=N, for all 0<=i<N), the task is to calculate for each number X from 1 to N,… Read More
Given a string S consisting of N lowercase English characters, the task is to print the lexicographically, the largest string obtained using only the minimum… Read More
Given a string, S of even length N, the task is to find the minimum number of moves needed to convert the string to a… Read More
Given a positive integer K and a string S consisting of N characters, the task is to maximize the sum of the frequencies of exactly… Read More
Given an array arr[] consisting of N positive integers, the task is to find the number of array elements whose highest power of 2 less… Read More
Given a string S consisting of N characters, the task is to print all palindromic strings of length 3 in lexicographical order that can be… Read More

Start Your Coding Journey Now!