Created
June 19, 2015 22:15
-
-
Save ceme/47b5e32eb43ee541f85b to your computer and use it in GitHub Desktop.
Euclidean algorithm implemented in JavaScript - demo: http://jsfiddle.net/86znwp1y/
This file contains hidden or 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
function gcd(a, b) { | |
return c = (b == 0) ? a : gcd (b, a % b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment