aoc2024/day-16/internal/two/solve.go

18 lines
228 B
Go
Raw Permalink Normal View History

2024-12-19 01:27:45 +00:00
package two
import (
"bytes"
)
func Solve(buf []byte) (int, error) {
r := bytes.NewReader(buf)
graph, err := parseLines(r)
if err != nil {
return 0, err
}
possibleSafe := graph.dijkstra()
return possibleSafe, nil
}