Solve 2024-06 (using bruteforce)

This commit is contained in:
2024-12-06 21:05:01 +01:00
parent 8e8012e8a5
commit 62baa825f2
8 changed files with 220 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst } from './index.ts';
describe('2024-06', () => {
const testInput = `....#.....
.........#
..........
..#.......
.......#..
..........
.#..^.....
........#.
#.........
......#...`;
it('first', () => {
expect(solveFirst(testInput)).toBe(41);
});
it('second', () => {
// that takes too long
// expect(solveSecond(testInput)).toBe(6);
});
});