diff --git a/2025/src/day11.clj b/2025/src/day11.clj index b5f6c12..2b2202a 100644 --- a/2025/src/day11.clj +++ b/2025/src/day11.clj @@ -7,14 +7,11 @@ (partial re-seq #"[a-z]{3}"))) (into {}))) -(def count-paths - (memoize - (fn [start target] - (let [edges (input start)] - (if (contains? edges target) - 1 - (apply + (map #(count-paths % target) edges))))))) - +(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")