## Count different numbers possible using all the digits their frequency times

Given an array arr[] which contains the frequency of the digits (0-9), the task is to find the count of numbers possible using each digit… Read More »

- Find the unit place digit of sum of N factorials
- Range and Update Sum Queries with Factorial
- Number of ways to go from one point to another in a grid
- Number of permutations of a string in which all the occurrences of a given character occurs together
- Number of trailing zeroes in base 16 representation of N!
- Find maximum value of x such that n! % (k^x) = 0
- Program to calculate the value of nPr
- Find GCD of factorial of elements of given array
- Number of trailing zeroes in base B representation of N!
- Find last two digits of sum of N factorials
- Number of ways to arrange a word such that all vowels occur together
- Check if factorial of N is divisible by the sum of squares of first N natural numbers
- Find the total Number of Digits in (N!)N
- Implementation of Wilson Primality test
- Check whether factorial of N is divisible by sum of first N natural numbers
- Numbers of Length N having digits A and B and whose sum of digits contain only digits A and B
- Arrangement of the characters of a word such that all vowels are at odd places
- Maximum number with same digit factorial product
- Find the smallest number X such that X! contains at least Y trailing zeros.
- Seating arrangement of n boys and girls alternatively around a round table
- Ways of dividing a group into two halves such that two elements are in different groups
- Check if a given number divides the sum of the factorials of its digits
- Count numbers having N 0's and and M 1's with no leading zeros
- Arrangement of words without changing the relative position of vowel and consonants
- Check if N is a Factorial Prime
- Count different numbers possible using all the digits their frequency times

Given an array arr[] which contains the frequency of the digits (0-9), the task is to find the count of numbers possible using each digit… Read More »

Given an integer N, the task is to check whether N divides the sum of the factorials of its digits. Examples: Input: N = 19… Read More »

Given a number ‘N’. Check whether factorial of ‘N’ is divisible by the sum of first ‘N’ natural numbers or not? If divisibility is possible,… Read More »

Given an integer N, the task is to find whether fact(N) is divisible by sum(N) where fact(N) is the factorial of N and sum(N) =… Read More »

Given the NxN grid of horizontal and vertical roads. The task is to find out the number of ways that the person can go from… Read More »

Given an integer Y, find the smallest number X such that X! contains at least Y trailing zeros. Prerequisites – Count trailing zeroes in factorial… Read More »

Given two numbers n and r, the task is to find the value of nPr. nPr represents n permutation r which is calculated as n!/(n-k)!.… Read More »

Given two integer N and M, the task is to find the number of distinct numbers having N 0’s and M 1’s with no leading… Read More »

Given an array with N positive integers. Find the GCD of factorials of all elements of array. Examples: Input : arr[] = {3, 4, 8,… Read More »

Given two positive integers B and N. The task is to find the number of trailing zeroes in b-ary (base B) representation of N! (factorial… Read More »

Given an integer N, the task is to find the number of trailing zeroes in the base 16 representation of the factorial of N. Examples:… Read More »

Given three positive integers N, A and B. The task is to count the numbers of length N containing only digits A and B and… Read More »

Given a positive integer N, the task is to check if N is a Factorial prime or not. If it is a factorial prime then… Read More »

Given an array arr[] of N integers and number of queries Q. The task is to answer three types of queries. Update [l, r] –… Read More »

Given a string str which represents an integer, the task is to find the largest number without any leading or trailing zeros or ones whose… Read More »