Theoretical recap.
A factorial of a non-negative integer n, written n, is the product of all positive integers from one up to n, with a special rule that zero equals one.
In programming, the factorial is the classic example used to compare two approaches: iteration, using a loop, and recursion, a function that calls itself.
Read the full transcript.
Create an account to read the whole episode, search across every transcript, and follow the shows you care about.
Theoretical recap.
A factorial of a non-negative integer n, written n, is the product of all positive integers from one up to n, with a special rule that zero equals one.
In programming, the factorial is the classic example used to compare two approaches: iteration, using a loop, and recursion, a function that calls itself.