This commit is contained in:
2022-12-12 09:20:14 +01:00
parent c98367aca0
commit 8becddb3ce
3 changed files with 174 additions and 0 deletions

16
day12/ex2/main.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"aoc2022/day12/common"
"bufio"
"fmt"
"os"
)
func main() {
heightmap := common.Parse(*bufio.NewScanner(os.Stdin))
heightmap.ComputeStepsFromEnd()
fmt.Println(heightmap.FindBestStart().GetSteps())
}