Skip to content

Instantly share code, notes, and snippets.

@adamwespiser
Created January 26, 2012 21:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save adamwespiser/1685138 to your computer and use it in GitHub Desktop.
4clojure problem 79 Triangle Minimum Path
(fn [col]
(first
(reduce #(map +
(map min (butlast %1)
(rest %1 ))
%2)
(reverse col))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment