mirror of
https://github.com/seigler/aoc2024
synced 2025-07-26 00:36:10 +00:00
day 7 tidiest
This commit is contained in:
parent
433321cd50
commit
22ce365434
1 changed files with 0 additions and 3 deletions
|
@ -1,8 +1,5 @@
|
|||
import run from "aocrunner"
|
||||
|
||||
const parseInput = (rawInput: string) =>
|
||||
rawInput.split("\n").map((line) => line.split(/[: ]+/).map(Number))
|
||||
|
||||
const solve = (rawInput: string, isP2?: boolean) => {
|
||||
const input = rawInput.split('\n').map(l => l.split(/[^\d]+/).map(Number))
|
||||
return input.reduce((total, [target, ...values]) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue