175 B
175 B
structure
暂时没时间整理, 后期才整理完整
PriorityQueue
pq := pqueuekey.New(compare.Int)
pq.Push(1, 1)
pq.Push(2, 2)
v = pq.Pop() // v = 2
暂时没时间整理, 后期才整理完整
pq := pqueuekey.New(compare.Int)
pq.Push(1, 1)
pq.Push(2, 2)
v = pq.Pop() // v = 2