Created
January 8, 2021 01:47
-
-
Save yanfeng42/4dbbc93dd61649a1785930d9fd3e9f32 to your computer and use it in GitHub Desktop.
sicp 1.2.5 最大公约数(gcd) 的欧几里得算法
This file contains 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 (my-gcd a b) | |
(if (= b 0) | |
a | |
(gcd b (remainder a b))) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
初学编程, 为了谋生
没想到 编程可以和自己的从小到大的学习, 结合的这么紧密
我一定让我的孩子, 上一所 以编程为 基础通识教育的 私立小学/中学
期待, 编程未来能成为像 数学,美术一类的基础通识学科, 能够从小普及推广的那种.
期待 有一天, 我的孩子(的孩子), 不用再为 一个问题的正确答案, 而反复在草纸上演算, 而把更多的精力花在去理解规则本身.