more old comments removed

This commit is contained in:
mtrx 2024-12-06 03:08:07 +01:00
parent 3c8fea51a8
commit 90c17bfafb

View file

@ -16,7 +16,6 @@ class DayThree implements Solvable {
public part1(): Solvable {
const re = /mul\([0-9]{1,3},[0-9]{1,3}\)/g
// get all matches and parse them to int[]
const result = this.input.matchAll(new RegExp(re))
.map(match => this.multiplyInstruction(match[0]))
.map(([left, right]) => left * right)
@ -27,7 +26,6 @@ class DayThree implements Solvable {
public part2(): Solvable {
const re = /(mul\([0-9]{1,3},[0-9]{1,3}\)|do\(\)|don\'t\(\))/g
// get all matches and parse them to int[]
const instructions = this.input.replace('\n', '').trim().matchAll(new RegExp(re)).map(match => match[0])
let active = true
let result = 0