Class: Algorithmable::Sort::BinaryHeap
- Inherits:
-
Object
- Object
- Algorithmable::Sort::BinaryHeap
- Defined in:
- lib/algorithmable/sort/binary_heap.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.sort(collection) ⇒ Object
4 5 6 |
# File 'lib/algorithmable/sort/binary_heap.rb', line 4 def self.sort(collection) new.sort(collection) end |
Instance Method Details
#sort(collection) ⇒ Object
8 9 10 |
# File 'lib/algorithmable/sort/binary_heap.rb', line 8 def sort(collection) fail NotImplementedError, collection end |