summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--day-9/script.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/day-9/script.ts b/day-9/script.ts
index cb1ac38..150c26d 100644
--- a/day-9/script.ts
+++ b/day-9/script.ts
@@ -19,7 +19,7 @@ const result = fs
.toString()
.split("\n")
.slice(0, -1)
- .map((line) => line.split(" ").map(Number))
+ .map((line) => line.split(" ").map(Number).reverse())
.map(predictValue)
.reduce((sum, value) => sum + value, 0);