// remove removes a value.
remove removes a value.
// remove removes a value .
func (h *Heap) remove() int {
	top := h.values[0]
	h.values[0] = h.values[h.size-1]
	h.values = h.values[:(h.size)-1]
	h.size--
	h.downHeapify(0)
	return top
}
func ( h * Heap ) remove ( ) int { top := h . values [ 0 ] h . values [ 0 ] = h . values [ h . size - 1 ] h . values = h . values [ : ( h . size ) - 1 ] h . size -- h . downHeapify ( 0 ) return top }
remove removes a value.
remove removes a value .