You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this problem, you will be given `T` testcases. Each line of the testcase consists of an integer `n`. We have to determine the factorial value of `n`
4
+
5
+
### Solution
6
+
Factorial of any value n denotes finding the product of all the values starting from 1 upto n.
7
+
In other words, `Factorial[n]=1*2*3*4...*(n-2)*(n-1)*n`.
8
+
So we can make an efficient solution, by preprocessing all the factorials for different possible values of n and while going through the test cases,we can just print out the factorial of `n`.
0 commit comments