can i use biginteger here
Doubt jbujhujhnujhb
No, you can’t use use biginteger here. biginteger can store upto pow(2,64) and the value of these factorials are much more than this range. try to use fac[i]%1000000007 and inverse modulo function
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.