Fix. Resetting the number strings

Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
This commit is contained in:
Eoghan Conlon 2024-12-09 12:01:28 +00:00
parent 08e3b9b27c
commit 44c6eb27e5

View file

@ -42,6 +42,13 @@ public class Day03 extends Input {
rValue += (num1 * num2); rValue += (num1 * num2);
num = 1; num = 1;
pattern_cnt = 0; pattern_cnt = 0;
num1_s = "";
num2_s = "";
} else {
num = 1;
pattern_cnt = 0;
num1_s = "";
num2_s = "";
} }
} }
} }