Fix example.

This commit is contained in:
Calvin Rose 2019-03-21 14:32:08 -04:00
parent 94a2084723
commit 1e299632e4
1 changed files with 2 additions and 4 deletions

View File

@ -2,10 +2,8 @@
# of the triangle to the leaves of the triangle.
(defn myfold [xs ys]
(let [xs1 (tuple/prepend xs 0)
xs2 (tuple/append xs 0)
m1 (map + xs1 ys)
m2 (map + xs2 ys)]
(let [m1 (map + [;xs 0] ys)
m2 (map + [0 ;xs] ys)]
(map max m1 m2)))
(defn maxpath [t]