delphirtl • Docs
delphirtl / Tree
TreeNode
TreeNode
• T
new Tree<
T
>(value
):Tree
<T
>
• value: T
Tree
<T
>
data:
T
left:
PTreeNode
<T
>
right:
PTreeNode
<T
>
get height():
number
Returns the height of the tree. Call only when this is the root.
number
static
createTree<T
>(nodeValues
):Tree
<T
>
• T
• nodeValues: Iterable
<T
, any
, any
>
Tree
<T
>