more old comments removed
This commit is contained in:
parent
3c8fea51a8
commit
90c17bfafb
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue