4 Star 25 Fork 17

编程语言算法集 / Go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gcd.go 182 Bytes
一键复制 编辑 原始数据 按行查看 历史
package gcd
// Recursive finds and returns the greatest common divisor of a given integer.
func Recursive(a, b int64) int64 {
if b == 0 {
return a
}
return Recursive(b, a%b)
}
Go
1
https://gitee.com/TheAlgorithms/Go.git
git@gitee.com:TheAlgorithms/Go.git
TheAlgorithms
Go
Go
master

搜索帮助