addNode

fun addNode(level: Int, node: Int)

Add node on the given level. Nodes can be inserted out of order, but it requires that the nodes preceded by the node inserted out of order are eventually added.

NOTE: You must add a node starting from the node's top level

Parameters

level

level to add a node on

node

the node to add, represented as an ordinal on the level 0.