mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-11-27 11:32:45 -10:00
Compare commits
2 Commits
c577615973
...
4a5ee3d100
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a5ee3d100 | ||
|
|
1cd6a07cf8 |
@ -22,8 +22,7 @@
|
||||
(mapv (constantly 0) puzzle))
|
||||
last))
|
||||
|
||||
(let [[w _ & p]
|
||||
(input-manager/get-input 2024 19)]
|
||||
(let [[w _ & p] (input-manager/get-input 2024 19)]
|
||||
(def words (into #{} (str/split w #", ")))
|
||||
(def puzzles p))
|
||||
|
||||
@ -45,5 +44,5 @@
|
||||
(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]
|
||||
(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")
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user