day17, dijkstra doesn't work
right? just because if found a shorter path, doesn't mean i don't need to check other directions. i have, because maybe they are not blocked and will provide better solution. so, yikes
This commit is contained in:
6
main.go
6
main.go
@@ -3,12 +3,12 @@ package main
|
||||
import (
|
||||
"log"
|
||||
|
||||
"sunshine.industries/aoc2023/day16"
|
||||
"sunshine.industries/aoc2023/day17"
|
||||
)
|
||||
|
||||
func main() {
|
||||
log.Print("> starting run:")
|
||||
|
||||
result := day16.Run()
|
||||
log.Printf("\n\nday16 result: %d\n****\n", result)
|
||||
result := day17.Run()
|
||||
log.Printf("\n\nday17 result: %d\n****\n", result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user