Last active
May 29, 2018 20:59
-
-
Save Edmundworks/42ae416a3cf36623ca8082614219415f to your computer and use it in GitHub Desktop.
SICP 1.12
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
(define (pascal row col) | |
cond (> col row) 0)) | |
(= col row) 1)) | |
(> col row) 1)) | |
else (+ (pascal (- row 1) (- col 1) | |
(pascal (- row 1) col)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment