summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-12-09 22:55:16 +0300
committereug-vs <eugene@eug-vs.xyz>2023-12-09 22:55:16 +0300
commit4342051199a1bb84e6ae3e247396ffd79e42b5ea (patch)
tree61a6b120d02926acbc57cdc09f81d716443d564a
parent4d93fa700fcec059559fe6e16c5f02a297f59925 (diff)
downloadaoc-2023-4342051199a1bb84e6ae3e247396ffd79e42b5ea.tar.gz
feat(day-9): easy af part 2 solutionHEADmaster
-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);