Created
January 26, 2012 21:13
-
-
Save adamwespiser/1685138 to your computer and use it in GitHub Desktop.
4clojure problem 79 Triangle Minimum Path
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
(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