₍^. .^₎⟆

This commit is contained in:
Leonard Lorenz 2025-12-02 22:20:36 +01:00
commit f33dda8916
10 changed files with 158 additions and 0 deletions

22
solutions/02.ts Normal file
View file

@ -0,0 +1,22 @@
import { solvables } from "../main.ts";
import type { Solvable } from "../solvable.ts";
import { readInput } from "../utils.ts";
class DayOne implements Solvable {
input = readInput('01')
public part1(): DayOne {
const vals: [string, number][] = this.input
.split("\n")
.map(line => [line[0], Number.parseInt(line.slice(1))]);
return this
}
public part2(): DayOne {
return this
}
}
solvables.push(new DayOne())