This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns advent-2019.day-3 | |
(:require [clojure.set :as set])) | |
(def directions {"U" [0 -1] | |
"D" [0 1] | |
"L" [-1 0] | |
"R" [1 0]}) | |
(defn input-item-to-list [input-item] | |
(let [[input-again direction count] (re-matches #"(.)(\d*)" input-item) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: * I am zck on github. * I am zkanfer (https://keybase.io/zkanfer) on keybase. * I have a public key ASBxqw_nqCOrFDKNEzqVeC40FvBEuUDL3isC3J2cSiQorgo | |
To claim this, I am signing this object: | |
```json | |
{ "body": { "key": { "eldest_kid": "012071ab0fe7a823ab14328d133a95782e3416f044b940cbde2b02dc9d9c4a2428ae0a", "host": "keybase.io", "kid": "012071ab0fe7a823ab14328d133a95782e3416f044b940cbde2b02dc9d9c4a2428ae0a", "uid": "42343e7edcbdebdde17055d99790bc19", "username": "zkanfer" }, "merkle_root": { "ctime": 1568221068, "hash": "34f71d47d8d4a49c76476f50af7fbdc63df40f091f1f48db5ec64ee0bddcff35cf3e005ac74981a2c53ae627a02e8d01f41cbf346e01e9afe6f047054680b339", "hash_meta": "32a0623701dc176b2f389579c604eea8afa5e18c74e13628cd2c491402df6cbb", "seqno": 6766990 }, "service": { "entropy": "1QDiEnELRHcOdVYw4HecSJl1", "name": "github", "username": "zck" }, "type": "web_service_binding", |