Skip to content

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`.

Where the book teaches it

Related terms

Heap for top kany