Skip to content

# Tag Archives: Permutation and Combination

Combinatorics is an important aspect of data analysis and statistics. It is used to solve many aptitude-based and real-life problems. While permutations do take into… Read More
Given two integers N and K, the task is to find the total number of ways of representing N as the sum of positive integers… Read More
Given an integer N, representing objects placed adjacent to each other, the task is to count the number of ways to remove objects such that… 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 two positive integers N and M, the task is to find the number of ways to place M distinct objects in partitions of even… Read More
A permutation is a collection or a combination of objects from a set where the order or the arrangement of the chosen objects does matter.… Read More
Given an array arr[] of size 26, representing frequencies of character ‘a’ to ‘z’, the task is to find the maximum number of palindromic strings… Read More
Given two integers M and N, the task is to find the number of N-length arrays possible having non-equal adjacent elements lying in the range… 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 array arr[] consisting of N integers and a positive integer K, the task is to find all permutations of the array arr[] such… Read More
Given a numeric string S of length M and an integer N, the task is to find all distinct combinations of S (repetitions allowed) that… Read More
Given a string S, the task is to count all possible strings that can be generated by placing spaces between any pair of adjacent characters… Read More
The combination is a way of choosing items from a set, such (unlike permutations) the order of selection doesn’t matter. In smaller cases, it’s possible… Read More
Given an array arr[] consisting of N integers, and an integer K, the task is to find the maximum number of inversions of the given… Read More
Given two positive integers N and K, the task is to find the number of K length strings that can be generated from the first… Read More