Write a function to compute the factorial of a number using tail recursion.
HardProblem Statement
Write a function to compute the factorial of a number using tail recursion.
Sample Input
5
Sample Output
120
Limits
Time: 2s · Memory: 256 MB
Write a function to compute the factorial of a number using tail recursion.
5
120
Time: 2s · Memory: 256 MB