pop

fun pop(): Long

Removes and returns the least element of the PriorityQueue in log(size) time.

Throws

if the LongHeap is empty.