Class: Array

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

Instance Method Summary collapse

Instance Method Details

#to_fenwick_treeObject Also known as: to_fetree



2
3
4
# File 'lib/core_ext/all.rb', line 2

def to_fenwick_tree
  FenwickTree.new(self)
end

#to_priority_queueObject Also known as: to_pq



7
8
9
# File 'lib/core_ext/all.rb', line 7

def to_priority_queue
  PriorityQueue.new(self)
end