## Number of trailing zeros in N * (N – 2) * (N – 4)*….

Given an integer N, the task is to find the number of trailing zeros in the decimal notation of f(N) where f(N) = 1 if… Read More »

- Check whether N is a Factorion or not
- Count permutation such that sequence is non decreasing
- Number of words that can be made using exactly P consonants and Q vowels from the given string
- Find the number of strings formed using distinct characters of a given string
- Queries for the product of first N factorials
- Euler zigzag numbers ( Alternating Permutation )
- Count of N-digit numbers with all distinct digits

Given an integer N, the task is to find the number of trailing zeros in the decimal notation of f(N) where f(N) = 1 if… Read More »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 is a sequence of integers which is a number of arrangements of those numbers so that each entry is alternately greater or… Read More »

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 »

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 »

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 »

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 »

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 »