aoc-2023/day_17/solve.ts

8 lines
262 B
TypeScript
Raw Normal View History

2024-12-09 22:41:02 +09:00
import { readCostMap, solve} from "./solver.ts";
const input = await Deno.readTextFile("example.txt");
const costMap = readCostMap(input);
// console.log(costMap)
const result = solve(costMap, [costMap[0].length - 1, costMap.length - 1]);
console.log(result);