Compare commits

..

2 Commits

Author SHA1 Message Date
Adam Jeniski
4a5ee3d100
fix comment 2025-10-19 11:50:50 -04:00
Adam Jeniski
1cd6a07cf8
golf 2025-10-19 11:49:57 -04:00

View File

@ -22,8 +22,7 @@
(mapv (constantly 0) puzzle)) (mapv (constantly 0) puzzle))
last)) last))
(let [[w _ & p] (let [[w _ & p] (input-manager/get-input 2024 19)]
(input-manager/get-input 2024 19)]
(def words (into #{} (str/split w #", "))) (def words (into #{} (str/split w #", ")))
(def puzzles p)) (def puzzles p))
@ -45,5 +44,5 @@
(valid-combination-count #{"word"} "word") ; 1 (valid-combination-count #{"word"} "word") ; 1
(increment-counts-for-matching-words #{"wo" "or" "w" "rd" "d"} "word" [0 0 0 0] 0) ; [1 1 0 0] (increment-counts-for-matching-words #{"wo" "or" "w" "rd" "d"} "word" [0 0 0 0] 0) ; [1 1 0 0]
(valid-combination-count #{"wo" "or" "w" "rd" "d"} "word") ; 2, because ("wo" "r" "d") and ("w") (valid-combination-count #{"wo" "or" "w" "rd" "d"} "word") ; 2, because ("wo" "r" "d") and ("w" "or" "d")
) )