Day 12
This commit is contained in:
16
day12/ex2/main.go
Normal file
16
day12/ex2/main.go
Normal 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())
|
||||
}
|
||||
Reference in New Issue
Block a user