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