Created
June 16, 2017 21:54
-
-
Save aajjbb/1571eea23a62562d209819484b3d8ae3 to your computer and use it in GitHub Desktop.
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
long long fat(int n, int r) { | |
if (n == 1) { | |
return 1; | |
} else if (r == 0) { | |
return 0; | |
} else { | |
return fat(n, r - 1) + fat(n - 1, n - 1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment