Method: DS::BinaryHeap.max
- Defined in:
- lib/ds/trees/binary_heap.rb
.max(*args) ⇒ Object
Create new Maximum Heap from args.
18 19 20 |
# File 'lib/ds/trees/binary_heap.rb', line 18 def BinaryHeap.max(*args) new(*args){|parent,child| parent >= child} end |