diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-17 20:05:10 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:33:16 +0100 |
commit | 68f5cce6fb9f69c666471ee64d0c9d004f24e483 (patch) | |
tree | e7adfd4309e6a34955a272f9f3ea2dc478ab4678 /day13 | |
parent | 7ea9fa5a6b10f93f0aca09ac8eb90543a781e67b (diff) |
Day 16
Diffstat (limited to 'day13')
-rw-r--r-- | day13/main.go | 2 |
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) { |