Class: MaxQ

Inherits:
PQ
  • Object
show all
Defined in:
lib/ordered_ds.rb

Instance Method Summary collapse

Methods inherited from PQ

#<<, #empty?, #pop, #size, #top

Constructor Details

#initialize(a = [], h = true) ⇒ MaxQ

Returns a new instance of MaxQ.



56
# File 'lib/ordered_ds.rb', line 56

def initialize(a = [], h = true) = super(a, h) { _1 < _2 }