remove gcd recursive step
This commit is contained in:
parent
cdc1bf25fc
commit
3a5a150351
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ func abs(n int) int {
|
|||
|
||||
func gcd(a, b int) int {
|
||||
if a < b {
|
||||
return gcd(b, a)
|
||||
a, b = b, a
|
||||
}
|
||||
for b != 0 {
|
||||
a, b = b, a%b
|
||||
|
|
Loading…
Reference in a new issue