From f6cff3a1c4fb6b752ac4e864d5a38c99034a752b Mon Sep 17 00:00:00 2001 From: mtrx Date: Wed, 4 Dec 2024 23:19:34 +0100 Subject: [PATCH] formatting --- solutions/02.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solutions/02.ts b/solutions/02.ts index e7c60a8..9c8a40e 100644 --- a/solutions/02.ts +++ b/solutions/02.ts @@ -22,7 +22,8 @@ class DayTwo implements Solvable { gradients.push("ascending") } else if (levels[i] > levels[j]) { gradients.push("descending") - } i++ + } + i++ j++ } // is safe and constant gradient?