summaryrefslogtreecommitdiff
path: root/day13/main.go
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-17 20:05:10 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:33:16 +0100
commit68f5cce6fb9f69c666471ee64d0c9d004f24e483 (patch)
treee7adfd4309e6a34955a272f9f3ea2dc478ab4678 /day13/main.go
parent7ea9fa5a6b10f93f0aca09ac8eb90543a781e67b (diff)
Day 16
Diffstat (limited to 'day13/main.go')
-rw-r--r--day13/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/day13/main.go b/day13/main.go
index c4261c3..914c4c5 100644
--- a/day13/main.go
+++ b/day13/main.go
@@ -55,7 +55,7 @@ func (queue *CandidateQueue) Len() int {
}
func (queue *CandidateQueue) Less(i, j int) bool {
- return queue.elements[i].Cnd.EstimateCost < queue.elements[i].Cnd.EstimateCost
+ return queue.elements[i].Cnd.EstimateCost < queue.elements[j].Cnd.EstimateCost
}
func (queue *CandidateQueue) Swap(i, j int) {