01 / 07
Break it into a smaller problem of the same shape
Think about the factorial of 5 — everything from 1 to 5 multiplied together.
That is 5 * 4 * 3 * 2 * 1. There is another way to look at it, though.
"The factorial of 5 is 5 times the factorial of 4."
The same statement, and yet "factorial" has turned up again on the right-hand side. The big problem has become a slightly smaller problem of the same shape.
Writing that view down as it stands is recursion.