franz newline

This commit is contained in:
Adam Jeniski 2025-12-19 08:52:47 -10:00
parent f88a28cad2
commit d55ca4c019

View File

@ -7,15 +7,12 @@
(partial re-seq #"[a-z]{3}")))
(into {})))
(def count-paths
(memoize
(fn [start target]
(def count-paths (memoize (fn [start target]
(let [edges (input start)]
(if (contains? edges target)
1
(apply + (map #(count-paths % target) edges)))))))
;; part 1
(count-paths "you" "out")