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