练习·辗转相除

填空练习 难度 2

#gcd#recursion#math

辗转相除的递归式里,第二个参数是什么运算?

知识点讲解

gcd(a, b) = gcd(b, a % b):用余数不断缩小问题。

来小码星球,动手写一遍 →