Tle error in one test case!

sir,i have kept my code on collaboration mode ,please tell me how can i make it efficient.

Hey @varu
I can see no code in the code pair link, can you paste your code in a coding blocks ide link and post the link here so that I can check your code?

Hey @varu
You’ve used simple iteration method to calculate factorial, write the solution using recursion, and memoize your solution(apply dp), coz only that’s gonna work for large numbers.

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.