Last active
August 29, 2017 08:16
-
-
Save herrfugbaum/f8c5b39246f74134ac7f9094d558b2b3 to your computer and use it in GitHub Desktop.
Euclidean algorithm
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
const euclid = (w, h) => h === 0 ? w : euclid(h, w % h) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment