diff options
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) { |