mirror of
https://github.com/ershisan99/advent-of-code.git
synced 2025-12-17 04:59:27 +00:00
2024 day 16 part 1
This commit is contained in:
15
2024/day-16/day16.ts
Normal file
15
2024/day-16/day16.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { solveMaze } from "./maze.ts"
|
||||
|
||||
export function part1(input: string) {
|
||||
const grid = parseInput(input)
|
||||
return solveMaze(grid)
|
||||
}
|
||||
|
||||
export function part2(input: string) {
|
||||
return 0
|
||||
}
|
||||
|
||||
function parseInput(input: string) {
|
||||
const lines = input.split("\n")
|
||||
return lines.map((l) => l.split(""))
|
||||
}
|
||||
Reference in New Issue
Block a user