Combinatorial - Hard Articles
Given a number N, the task is to calculate the count of numbers of length N having prime numbers at odd indices and odd numbers… Read More
Given two positive integers N and K, the task is to count the number of even and odd integers consisting of N bits, out of… Read More
Given two integers N and K, find the distinct number of ways to create an array of N elements where each element is in the… Read More
Given 4 integers X, Y, A, B. In one move either decrease X by A and Y by B or decrease X by B and… Read More
Given a positive integer N, the task is to count the number of N-digit numbers which contain all single digit primes. Examples: Input: N =… Read More
Given a string S consisting of N digits, the task is to find the number of distinct Prime Numbers that can be formed using the… Read More
Given an array arr[] consisting of N integers and a positive integer K, the task is to find the largest sum of any contiguous subarray… Read More
Given two N-digit positive integers X and Y, the task is to find the minimum absolute difference between both the integers possible by rearranging the… Read More
Given an array arr[] consisting of N strings, an array letter[] consisting of M lowercase characters, and an array score[] such that score[i] is the… Read More
Given two integers N and K, the task is to find all valid combinations of K numbers that adds up to N based on the… Read More
Given an integer N and two integers D1 and D2 ( < 10), the task is to find the number of co-prime pairs less than… Read More
Given a string S of length N, the task is to count the number of anagrams of S whose first character is a consonant and… Read More
Given an array arr[] consisting of N integers, the task is to count the number of ways to make the product of array elements even… Read More
Given a numberic string N (1 ≤ |N| ≤ 105) and another numeric string S (1 ≤ |S| ≤ 105), the task is to find… Read More
Given an array arr[] of even length N and an integer K, the task is to minimize the count of replacing array elements by an… Read More
Given an integer N, the task is to count the number of N-length strings consisting of lowercase vowels that can be generated based the following… Read More
Given an integer N, the task is to find the number of ways N! can be split into two distinct factors A and B such… Read More
Given an array arr[] of size N representing the available denominations and an integer X. The task is to find any combination of the minimum… Read More