Factorial Of Large Number
The first line contains a single integer ‘T’ denoting the number of test cases. Each test case contains a single line with a single integer ‘N’ denoting the given number.
For each test case, print a string denoting the factorial of the given number in a separate line.
You do not need to print anything; it has already been taken care of. Just implement the given function.
1 <= T <= 50 1 <= N <= 500 Time Limit: 1 sec.
Since the factorials of large integers exceed 10^18 they cannot be stored in any variable of primitive data type, hence the idea is to use an array to store the factorial of the numbers.
Steps are as follows:
Longest Palindromic Substring
Merge Two Sorted Arrays Without Extra Space