class MaxHeap(K, V)
Defined in:
heap.cr
Constructors
Instance Method Summary
Instance methods inherited from class Heap(K, V)
<<(key : K)
<<,
change_key(key : K, new_key : K)
change_key,
clear
clear,
delete(key)
delete,
delete_key(key)
delete_key,
empty?
empty?,
has_key?(key)
has_key?,
merge!(other_heap : Heap(K, V))
merge!,
next
next,
next_key
next_key,
pop
pop,
push(key : K, value = key)
push,
size
size
Constructor methods inherited from class Heap(K, V)
new(comparator : K, K -> Bool = ->(x : K, y : K) do
(x <=> y) == -1
end)
new
Constructor Detail
Instance Method Detail