Created
February 16, 2019 14:04
-
-
Save shootacean/bf8e3ea57e6a1659210d1a62a15936e7 to your computer and use it in GitHub Desktop.
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
func gcd(a, b int) int { | |
if b == 0 { | |
return a | |
} | |
return gcd(b, a%b) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment