From e7622d74d5a341567b89ec91feb99ba15bd62f19 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Mon, 1 Dec 2025 21:17:50 -0500 Subject: [PATCH] remove another useless 100 --- src/Day01.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Day01.java b/src/Day01.java index 7f15b5c..d9cf529 100644 --- a/src/Day01.java +++ b/src/Day01.java @@ -17,7 +17,7 @@ public class Day01 { String instruction = scanner.nextLine(); int change = Integer.parseInt(instruction.substring(1)); dial = switch (instruction.charAt(0)) { - case 'L' -> (dial - change + 100) % 100; + case 'L' -> (dial - change) % 100; case 'R' -> (dial + change) % 100; default -> dial; // impossible };