mirror of
https://github.com/Ajetski/advent-of-code.git
synced 2025-09-30 13:03:19 -09:00
day 24 part 1
This commit is contained in:
parent
95245a474a
commit
adfa38f737
@ -142,6 +142,12 @@
|
|||||||
|
|
||||||
;; conversions
|
;; conversions
|
||||||
|
|
||||||
|
(defn binary->long [binary-str]
|
||||||
|
(Long/parseLong binary-str 2))
|
||||||
|
|
||||||
|
(defn long->binary [value]
|
||||||
|
(Long/toString value 2))
|
||||||
|
|
||||||
(def arrow-char->dir {\> :right
|
(def arrow-char->dir {\> :right
|
||||||
\v :down
|
\v :down
|
||||||
\< :left
|
\< :left
|
||||||
|
Loading…
x
Reference in New Issue
Block a user