Skip to content

Instantly share code, notes, and snippets.

@adamwespiser
Created January 26, 2012 21:13
Show Gist options
  • Save adamwespiser/1685138 to your computer and use it in GitHub Desktop.
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