mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-11-27 11:32:45 -10:00
rename
This commit is contained in:
parent
f7b77d4fd0
commit
463a291744
@ -35,7 +35,7 @@
|
|||||||
(into visited searches)
|
(into visited searches)
|
||||||
(into shortest searches-w-path-lengths))))))
|
(into shortest searches-w-path-lengths))))))
|
||||||
|
|
||||||
(defn find-best-cheat []
|
(defn find-cheats []
|
||||||
(let [search-path (find-search-path)
|
(let [search-path (find-search-path)
|
||||||
walls (->> grid
|
walls (->> grid
|
||||||
(filter (comp #{\#} second))
|
(filter (comp #{\#} second))
|
||||||
@ -53,7 +53,8 @@
|
|||||||
(map #(- % a) bs))))]
|
(map #(- % a) bs))))]
|
||||||
(frequencies cheats)))
|
(frequencies cheats)))
|
||||||
|
|
||||||
(->> (find-best-cheat)
|
;; part 1
|
||||||
|
(->> (find-cheats)
|
||||||
(filter (comp #(> % 100) first))
|
(filter (comp #(> % 100) first))
|
||||||
(map second)
|
(map second)
|
||||||
(apply +))
|
(apply +))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user