Created
December 31, 2019 12:03
-
-
Save MinimumViablePerson/af76ba95ca3c8fdff16f9e62de821ba6 to your computer and use it in GitHub Desktop.
Recursion from Scratch - factorial evaluation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
factorial(4) | |
4 * factorial(3) | |
4 * 3 * factorial(2) | |
4 * 3 * 2 * factorial(1) | |
4 * 3 * 2 * 1 * factorial(0) | |
4 * 3 * 2 * 1 * 1 | |
24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment