Day 16
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user