Class: CompSci::CompleteTernaryTree

Inherits:
CompleteTree show all
Defined in:
lib/compsci/complete_tree.rb

Instance Attribute Summary

Attributes inherited from CompleteTree

#array

Instance Method Summary collapse

Methods inherited from CompleteTree

#bf_search, children_idx, #df_search, #display, gen, #last_idx, parent_idx, #pop, #push, #size

Constructor Details

#initialize(array: []) ⇒ CompleteTernaryTree

Returns a new instance of CompleteTernaryTree.


98
99
100
# File 'lib/compsci/complete_tree.rb', line 98

def initialize(array: [])
  super(array: array, child_slots: 3)
end