minor: correct pq.Less comment
Vladimir Bauer
3 years ago
| 5 | 5 |
func (pq priorityQueue) Len() int { return len(pq) }
|
| 6 | 6 |
|
| 7 | 7 |
func (pq priorityQueue) Less(i, j int) bool {
|
| 8 | |
// less priority pops first
|
|
8 |
// greater priority pops first
|
| 9 | 9 |
return pq[i].priority > pq[j].priority
|
| 10 | 10 |
}
|
| 11 | 11 |
|