I am not able to understand the problem in my code.
Would appreciate any help!
I am not able to understand the problem in my code.
Would appreciate any help!
Hey @king-slayer97 for n == 0 answer should be 1, handle that case
and declare all int variable as long long int
If this doesn’t work. Do let me know.
you forgot to make return type also as long long int, it was int, so it was typecasting your long long int as int. Check now ->
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.