Skip to content

Commit 67e1e67

Browse files
committed
day20: added 20 picoseconds limit
result is too low yet
1 parent 403ad31 commit 67e1e67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

day20/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ func findCheats(course [][]byte, moves []util.Point, startIdx int, minSaving int
101101
for len(recents) > 0 {
102102
var found = make(map[util.Point]int)
103103
for p1, cost := range recents {
104+
if cost == 20 {
105+
continue
106+
}
104107
for _, d := range directions {
105108
var p2 = p1.Add(d)
106109
if !p2.IsInBounds(len(course), len(course[p1.Y])) {

0 commit comments

Comments
 (0)