2022 Day 20 Complete!

This commit is contained in:
2022-12-20 06:59:48 -06:00
parent 33d1a7c3c6
commit 6a843e488c
6 changed files with 5369 additions and 31 deletions

View File

@@ -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)
}
}