Glossary: Coding Interviews in Go
container/heap
Also written: heap.Push, heap.Pop
Go's standard heap package. It does the sifting, but you supply a type with the five methods `Len`, `Less`, `Swap`, `Push` and `Pop`.
Glossary: Coding Interviews in Go
Also written: heap.Push, heap.Pop
Go's standard heap package. It does the sifting, but you supply a type with the five methods `Len`, `Less`, `Swap`, `Push` and `Pop`.