Solve 2024-18 (using A* lib)

This commit is contained in:
2024-12-19 15:20:16 +01:00
parent a2f386277f
commit 7bd85e5f6b
6 changed files with 226 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { join } from 'path';
import { solveFirst, solveSecond } from './index.ts';
const input = await Bun.file(join(__dirname, 'input.txt')).text();
const firstAnswer = solveFirst(input);
console.log(firstAnswer);
const secondAnswer = solveSecond(input);
console.log(secondAnswer);