mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-09-30 11:23:17 -09:00
add comments
This commit is contained in:
parent
66478a04c0
commit
d5d2c3bd2e
@ -14,6 +14,7 @@
|
|||||||
lcm (fn lcm [a b] (/ (* a b) (gcd a b)))]
|
lcm (fn lcm [a b] (/ (* a b) (gcd a b)))]
|
||||||
(reduce lcm x)))
|
(reduce lcm x)))
|
||||||
|
|
||||||
|
;; part 1
|
||||||
(let [[dir _ & lines] (get-puzzle-input 8)
|
(let [[dir _ & lines] (get-puzzle-input 8)
|
||||||
dir-idx (map #(condp = %
|
dir-idx (map #(condp = %
|
||||||
\L 0
|
\L 0
|
||||||
@ -29,6 +30,7 @@
|
|||||||
drest
|
drest
|
||||||
(inc n)))))
|
(inc n)))))
|
||||||
|
|
||||||
|
;; part 2
|
||||||
(let [[dir _ & lines] (get-puzzle-input 8)
|
(let [[dir _ & lines] (get-puzzle-input 8)
|
||||||
dir-idx (map #(condp = %
|
dir-idx (map #(condp = %
|
||||||
\L 0
|
\L 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user