Solve 2024-02

This commit is contained in:
2024-12-02 13:07:13 +01:00
parent 503001220d
commit 8e1060e6a4
4 changed files with 79 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst, solveSecond } from './index.ts';
describe('2024-02', () => {
const testInput = `7 6 4 2 1
1 2 7 8 9
9 7 6 2 1
1 3 2 4 5
8 6 4 4 1
1 3 6 7 9`;
it('first', () => {
expect(solveFirst(testInput)).toBe(2);
});
it('second', () => {
expect(solveSecond(testInput)).toBe(4);
});
});