## Find the unit place digit of sum of N factorials

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 »

- Program to calculate the value of nPr
- Number of ways to go from one point to another in a grid
- Check if factorial of N is divisible by the sum of squares of first N natural numbers
- Find GCD of factorial of elements of given array
- Number of ways to arrange K different objects taking N objects at a time
- Check whether factorial of N is divisible by sum of first N natural numbers
- Count of N digit numbers possible which satisfy the given conditions
- Count numbers having N 0's and and M 1's with no leading zeros
- Find the smallest number X such that X! contains at least Y trailing zeros.
- Factorial of an Array of integers
- Find sum of factorials in an array
- Find the count of M character words which have at least one character repeated
- Check if a given number divides the sum of the factorials of its digits
- Count different numbers possible using all the digits their frequency times
- Calculate MDAS Factorial of given number
- Euler zigzag numbers ( Alternating Permutation )

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 »

Given a number, the task is to find the hyperfactorial of a number. The result of multiplying a given number of consecutive integers from 1… Read More »

Given Q queries and P where P is a prime number, each query has two numbers N and R and the task is to calculate… Read More »

Given a positive integer N, we have to find the total number of digits in the factorial of N raised to the power N, i.e,… Read More »

Given a number N. Find the product of first N factorials modulo 1000000007. Constraints: 1 ≤ N ≤ 1e6 Examples: Input : 3 Output :… Read More »

Given n, we need to find sum of 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)! Examples: Input: 1 Output: 2 Input: 3 Output: 242 We may… Read More »

Given a, b and N(1 to 106). Task is to count the numbers formed by digits a and b exactly of a length N such… Read More »