Tag Archives: Permutation and Combination

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 a positive integer N, the task is to find the number of alphanumeric palindromic strings of length N. Since the count of such strings… Read More
Given an array arr[] of size N, where arr[i] denotes the number of elements on the left that are greater than the ith element in… Read More
Given an array arr[] of size N, the task is to find the total number of sequences of positive integers possible (greater than 1) whose… Read More
Given N distinct objects, the task is to find the number of distinct arrangements of N objects if all clockwise arrangements are considered the same.… Read More