Factorial of large numbers

The factorial of a non-negative number n, denoted by n!, is the product of all positive numbers less than or equal to n. With the usual approach, we can compute factorial only till 20! due to size limitation of data type. We have present how to overcome this limitation.

Table of content:

Definition of factorialWhat if the number is large, for example 200! ?Approach to find factorial of large numbersTime and Space ComplexityDefinition of factorial

N! = N * (N-1) * (N-2) * ... * 3 * 2 * 1

Ex...

 •  0 comments  •  flag
Share on Twitter
Published on July 24, 2021 13:11
No comments have been added yet.