diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-12-09 22:55:16 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-12-09 22:55:16 +0300 |
commit | 4342051199a1bb84e6ae3e247396ffd79e42b5ea (patch) | |
tree | 61a6b120d02926acbc57cdc09f81d716443d564a | |
parent | 4d93fa700fcec059559fe6e16c5f02a297f59925 (diff) | |
download | aoc-2023-master.tar.gz |
-rw-r--r-- | day-9/script.ts | 2 |
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); |