Solution Review: Factorial

This review provides a detailed analysis of finding the factorial of a number using recursion.

We'll cover the following

Solution

Whenever our function f(n)f(n) will run, f(n)f(n) will call f(nāˆ’1)f(n-1) as long as it is greater than or equal to 1.

Letā€™s look at the illustration to better understand the solution.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.