2022 Day 20 Complete!
This commit is contained in:
@@ -57,6 +57,7 @@ func (v *Volcano) TrackStepCount(from *Room, to *Room, visited []*Room) int {
|
||||
if !IsRoomIn(t, visited) {
|
||||
fmt.Println(" Haven't Visited")
|
||||
wrk := v.TrackStepCount(t, to, append(visited, t)) + 1
|
||||
fmt.Println(" From", from, "to", to, "in", wrk)
|
||||
minSteps = h.Min(minSteps, wrk)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user