Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:5205587
1 2 3 4 5 6
(fn f
([n] (f n [100 50 20 10 5 1] {}))
([n [x & xs :as coll] acc]
(if-not (seq coll)
acc
(f (mod n x) xs (assoc acc x (unchecked-divide-int n x))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.