Skip to content

Instantly share code, notes, and snippets.

@dd1994
Last active Nov 3, 2015
Embed
What would you like to do?
get greatest common divisor(use Clojure)
(defn gcd
[div rem]
(if (= rem 0)
div
(gcd rem (mod div rem))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment