Class: MaxQ
Instance Method Summary collapse
-
#initialize(a = [], h = true) ⇒ MaxQ
constructor
A new instance of MaxQ.
Methods inherited from PQ
#<<, #empty?, #pop, #pop_push, #push_pop, #size, #top
Constructor Details
#initialize(a = [], h = true) ⇒ MaxQ
Returns a new instance of MaxQ.
64 |
# File 'lib/ordered_ds.rb', line 64 def initialize(a = [], h = true) = super(a, h) { _1 < _2 } |