Can you help me on why I got the first test case right and the next not?
Only one test case right
Factorial of 100 has 158 digits. It is not possible to store these many digits even if we use long long int.
we can use an array to store individual digits of the result. The idea is to use basic mathematics for multiplication.
Reference Code
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.