Solve 2024-19

This commit is contained in:
2024-12-19 15:20:54 +01:00
parent 7bd85e5f6b
commit 30481ea4c9
4 changed files with 119 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst, solveSecond } from './index.ts';
describe('2024-19', () => {
const testInput = `r, wr, b, g, bwu, rb, gb, br
brwrr
bggr
gbbr
rrbgbr
ubwu
bwurrg
brgr
bbrgwb`;
it('first', () => {
expect(solveFirst(testInput)).toBe(6);
});
it('second', () => {
expect(solveSecond(testInput)).toBe(16);
});
});