## Number of trailing zeroes in base B representation of N!

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 »

- Find the unit place digit of sum of N factorials
- Number of integral solutions of the equation x1 + x2 +.... + xN = k
- Range and Update Sum Queries with Factorial
- Find maximum value of x such that n! % (k^x) = 0
- Find Nth term of series 1, 4, 15, 72, 420...
- 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 Nth term of the series 1, 1, 2, 6, 24...
- Find last two digits of sum of N factorials
- Number of ways to arrange a word such that all vowels occur together
- Find sum of product of number in given series
- Find Nth term of the series 1, 8, 54, 384...
- Find the total Number of Digits in (N!)N
- Minimum length of string having all permutation of given string.
- Arrangement of the characters of a word such that all vowels are at odd places
- Numbers of Length N having digits A and B and whose sum of digits contain only digits A and B
- Maximum number with same digit factorial product
- Seating arrangement of n boys and girls alternatively around a round table
- Implementation of Wilson Primality test
- Ways of dividing a group into two halves such that two elements are in different groups
- Arrangement of words without changing the relative position of vowel and consonants
- Number of trailing zeroes in base B representation of N!
- Hyperfactorial of a number
- Check if N is a Factorial Prime

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 »

Given a string ‘S’ containing vowels and consonants of lowercase English alphabets. The task is to find the number of ways in which the characters… Read More »

Given a word containing vowels and consonants. The task is to find that in how many different ways word can be arranged so that the… Read More »

Given two integers and . The task is to find the maximum value of x, such that, n! % (k^x) = 0. Examples: Input :… Read More »

Given a string ‘s’ and a character ‘c’, the task is to find the number of permutations of the string in which all the occurrences… Read More »

Given 2n girls and randomly divided into two subgroups each containing n girls. The task is to count the number of ways in which groups… Read More »

Given a word of length less than 10, the task is to find a number of ways in which it can be arranged without changing… Read More »

There are n boys and n girls are to be seated around a round table, in a circle. The task is to find number of… Read More »

Given a number N, the task is to find unit and tens places digit of the first N natural numbers factorials, i.e last last two… Read More »

Given a number N, the task is to find units place digit of the first N natural numbers factorials, i.e. 1!+2!+3!+….N! where N<=10e18. Examples: Input:… Read More »