## Find maximum value of x such that n! % (k^x) = 0

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

- Number of ways to arrange K different objects taking N objects at a time
- Check whether N is a Factorion or not
- Count of N digit numbers possible which satisfy the given conditions
- Find sum of factorials in an array
- Factorial of an Array of integers
- Find the count of M character words which have at least one character repeated
- 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
- Calculate MDAS Factorial of given number
- Queries for the product of first N factorials
- Euler zigzag numbers ( Alternating Permutation )
- Count of N-digit numbers with all distinct digits

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 »

Given a number N, the task is to check if it is prime or not using Wilson Primality Test. Print ‘1’ isf the number is… Read More »

Given a number N. The task is to find the total Number of Digits in . Examples: Input: N = 3 Output: 3 If N=3,… Read More »

Given two numbers N and T where, and . The task is to find the value of . Since sum can be large, output it… Read More »

Given a string where, . Assume that all the characters in are unique. The task is to compute the minimum length of a string which… Read More »

Given N and K. The task is to count the number of the integral solutions of a linear equation having N variable as given below:… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 1, 2, 6, 24…… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 8, 54, 384… Examples:… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 1, 4, 15, 72, 420…… Read More »