dev rstoetter cbalancedbinarytree cBalancedBinaryTree::_InsertNode() - rstoetter/cbalancedbinarytree-php GitHub Wiki

Method _InsertNode( ) - of API Reference dev

 protected   mixed rstoetter\cbalancedbinarytree\cBalancedBinaryTree::_InsertNode(\rstoetter\cbalancedbinarytree\type $new_node, \rstoetter\cbalancedbinarytree\type|null $root_node)
  • Namespace : rstoetter\cbalancedbinarytree
  • Class name: cBalancedBinaryTree
  • This method is defined by the class rstoetter\cbalancedbinarytree\cBalancedBinaryTree

insert a new node $new_node above the tree $root_node based on key's value, which defines the sorting order $tree should be null in order to insert the node not into a subtree

Arguments

  • $new_node \rstoetter\cbalancedbinarytree\type - <p>the new node</p>
  • $root_node \rstoetter\cbalancedbinarytree\type|null - <p>the root node</p>