Class: MaxQ

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

Instance Method Summary collapse

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 }