Created
May 18, 2019 16:14
-
-
Save pom421/ad455426c40613cf4bad434a7594a07e 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
# gcd | |
def gcd(a: Int, b: Int): Int = if (b == 0) a else gcd(b, a % b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment