Solve 2026-01

This commit is contained in:
2026-12-02 16:20:32 +01:00
parent 106c16ee1e
commit 82adaf36ac
5 changed files with 73 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst, solveSecond } from './index.ts';
describe('2026-01', () => {
const testInput = `57
57
55
57
76
78
57
45
43
78
43
76
43
78
57
45
57
76
43
43
76`;
it('first', () => {
expect(solveFirst(testInput)).toBe(186276);
});
it('second', () => {
expect(solveSecond(testInput)).toBe(193050);
});
});