From a06dacfbae01b306c749d268b382cf5bc492bf6e Mon Sep 17 00:00:00 2001 From: David Ashby Date: Mon, 1 Dec 2025 21:04:03 -0500 Subject: [PATCH] remove unnecessary -100 --- src/Day01.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Day01.java b/src/Day01.java index 54f9044..f1eee64 100644 --- a/src/Day01.java +++ b/src/Day01.java @@ -45,7 +45,7 @@ public class Day01 { switch (instruction.charAt(0)) { case 'L' -> { for (int i = 0; i < change; i++) { - dial = (dial - 101) % 100; + dial = (dial - 1) % 100; if (dial == 0) { password += 1; }