From 4342051199a1bb84e6ae3e247396ffd79e42b5ea Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 9 Dec 2023 22:55:16 +0300 Subject: feat(day-9): easy af part 2 solution --- day-9/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3