summaryrefslogtreecommitdiff
path: root/day13/main.go
diff options
context:
space:
mode:
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) {