## Check if a given number is factorial of any number

Given a number n, the task is to determine whether n can be a factorial of some number x Examples: Input: N = 24 Output:… Read More »

## Number of ways to distribute N Paper Set among M students

Given N students and a total of M sets of question paper where M ≤ N. All the M sets are different and every sets… Read More »

## Count of N-digit numbers with all distinct digits

Given an integer N, the task is to find the count of N-digit numbers with all distinct digits. Examples: Input: N = 1 Output: 9… Read More »

## Number of words that can be made using exactly P consonants and Q vowels from the given string

Given a string str and two integers P and Q. The task is to find the total count of words that can be formed by… Read More »

## Check whether N is a Factorion or not

Given an integer N and the task is to check whether N is a Factorion or not. A Factorion is a number which is equal… Read More »

## Queries for the product of first N factorials

Given Q[] queries where each query consists of an integer N, the task is to find the product of first N factorials for each of… Read More »

## Find the number of strings formed using distinct characters of a given string

Given a string str consisting of lowercase English alphabets, the task is to find the count of all possible string of maximum length that can… Read More »

## Count permutation such that sequence is non decreasing

Given an array arr[] of integers, the task is to find the count of permutation of the array such that the permutation is in increasing… Read More »

## Euler zigzag numbers ( Alternating Permutation )

Euler Zigzag numbers is a sequence of integers which is a number of arrangements of those numbers so that each entry is alternately greater or… Read More »

## Count of N digit numbers possible which satisfy the given conditions

Given an integer N, the Task is to find the total number of N digit numbers possible such that: All the digits of the numbers… Read More »

## Find the count of M character words which have at least one character repeated

Given two integers N and M, the task is count the total words of M character length formed by the given N distinct characters such… Read More »

## Calculate MDAS Factorial of given number

Given an integer N, the task is to find the MDAS factorial. The general factorial of a no. N is given by : Factorial(N) =… Read More »

## Factorial of an Array of integers

Given an array with positive integers. The task is to find the factorial of all the array elements. Note: As the numbers would be very… Read More »

## Find sum of factorials in an array

Given an array arr[] of N integers. The task is to find the sum of factorials of each element of the array. Examples: Input: arr[]… Read More »

## Number of ways to arrange K different objects taking N objects at a time

Given two integers K and N, the task is to count the number of ways to arrange K different objects taking N objects at a… Read More »