This commit is contained in:
Adam Jeniski 2023-12-09 09:46:21 -05:00
parent b989138719
commit d7af2de25f

View File

@ -16,7 +16,8 @@
(defn solve [reduction] (defn solve [reduction]
(->> (get-puzzle-input 9) (->> (get-puzzle-input 9)
(map parse-line) (map parse-line)
(mapv (comp reverse generate-pyramid)) (map generate-pyramid)
(map reverse)
(map (partial reduce reduction 0)) (map (partial reduce reduction 0))
(reduce +))) (reduce +)))