1 parent
716c6dddd8
commit
60bc30dd08
15 files changed
+21
-21
No files matched your search
@@ -29,7 +29,7 @@ func (pq priorityQueue) Swap(i, j int) {
|
||||
pq[i], pq[j] = pq[j], pq[i]
|
||||
}
|
||||
|
||||
// Push adds a new item the the priorityQueue.
|
||||
// Push adds a new item the priorityQueue.
|
||||
func (pq *priorityQueue) Push(x interface{}) {
|
||||
item := x.(PriorityQueueItem)
|
||||
*pq = append(*pq, item)
|
||||
|
||||
Reference in new issue
Block a user