From 3c8fea51a8459c3054f2d663a3c272fd0508ca34 Mon Sep 17 00:00:00 2001 From: mtrx Date: Fri, 6 Dec 2024 03:07:32 +0100 Subject: [PATCH] comments removed --- solutions/03.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/solutions/03.ts b/solutions/03.ts index d59d0cd..0a256d8 100644 --- a/solutions/03.ts +++ b/solutions/03.ts @@ -14,7 +14,6 @@ class DayThree implements Solvable { .map(arr => Number.parseInt(arr)) } - public part1(): Solvable { const re = /mul\([0-9]{1,3},[0-9]{1,3}\)/g // get all matches and parse them to int[] @@ -33,7 +32,6 @@ class DayThree implements Solvable { let active = true let result = 0 for (const inst of instructions) { - console.log((active ? '' : 'skipping ') + inst ) if (inst === 'do()') { active = true continue @@ -45,8 +43,6 @@ class DayThree implements Solvable { if (active) { const [left, right] = this.multiplyInstruction(inst) result += left * right - console.log((active ? 'multiplying ' : '' ), left, right) - console.log(left, right) } } console.log(result)