The function used to determine an items score.
The height of the tree. This is the number of nodes from root until the end of the longest branch.
The number of items in the tree.
Adds an item into the tree. Uses the tree's sorting function to determine the items position in the tree. Returns the score of the item.
The item to add
The score of the item
Generated using TypeDoc
A tree where each node has an optional left and right node.