Class: Heap::BinaryHeap::MaxHeap
- Inherits:
-
BinaryHeap
- Object
- HeapTemplate
- BinaryHeap
- Heap::BinaryHeap::MaxHeap
- Defined in:
- lib/Heap/binary_heap/binary_heap_max.rb
Overview
Binary Heap with max root
Instance Attribute Summary
Attributes inherited from HeapTemplate
Instance Method Summary collapse
Methods inherited from HeapTemplate
Instance Method Details
#extract_max ⇒ Object
5 6 7 |
# File 'lib/Heap/binary_heap/binary_heap_max.rb', line 5 def extract_max extract_root end |
#extract_max! ⇒ Object
9 10 11 |
# File 'lib/Heap/binary_heap/binary_heap_max.rb', line 9 def extract_max! extract_root! end |