From bb85b88e352e76c75e7ed1fe2665c24057f812ea Mon Sep 17 00:00:00 2001 From: Eoghan Conlon Date: Mon, 9 Dec 2024 12:01:28 +0000 Subject: [PATCH] Day03 p1 Fix. Resetting the number strings Signed-off-by: Eoghan Conlon --- src/Day03.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Day03.java b/src/Day03.java index cc55cdd..89db8e9 100644 --- a/src/Day03.java +++ b/src/Day03.java @@ -42,6 +42,13 @@ public class Day03 extends Input { rValue += (num1 * num2); num = 1; pattern_cnt = 0; + num1_s = ""; + num2_s = ""; + } else { + num = 1; + pattern_cnt = 0; + num1_s = ""; + num2_s = ""; } } }