projects
/
adventofcode2019.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix day9pt1 and add correct day9pt2
[adventofcode2019.git]
/
src
/
adventofcode2019
/
day09.clj
diff --git
a/src/adventofcode2019/day09.clj
b/src/adventofcode2019/day09.clj
index 495b336e2928a04d6665c9926aa7b2dc25c273c4..48a4a72507bc5f75a0dbee14904859a75e620644 100644
(file)
--- a/
src/adventofcode2019/day09.clj
+++ b/
src/adventofcode2019/day09.clj
@@
-1,11
+1,8
@@
(ns adventofcode2019.day09
[:require [adventofcode2019.lib :refer :all]
(ns adventofcode2019.day09
[:require [adventofcode2019.lib :refer :all]
- [adventofcode2019.intcode :as i]
- [clojure.string :as str]
- [clojure.core.match :refer [match]]
- [clojure.math.combinatorics :as combo]])
+ [adventofcode2019.intcode :as i]])
(defn day09 []
(let [input (mapv parse-int (get-list-from-file (input-file) #","))]
(part1 (:output (i/intcode (i/build-state input {:input [1]}))))
(defn day09 []
(let [input (mapv parse-int (get-list-from-file (input-file) #","))]
(part1 (:output (i/intcode (i/build-state input {:input [1]}))))
-
#_(part2
)))
+
(part2 (:output (i/intcode (i/build-state input {:input [2]})))
)))