MCPcopy Create free account
hub / github.com/lodborg/interval-tree / height

Method height

src/main/java/com/lodborg/intervaltree/TreeNode.java:168–170  ·  view source on GitHub ↗

Returns the height of the subtree, rooted at the current node. @return The height of the subtree, rooted ad the current node. It will be 1, if the node is a leaf.

()

Source from the content-addressed store, hash-verified

166 * the node is a leaf.
167 */
168 public int height(){
169 return height;
170 }
171
172 /**
173 * Returns the height of a subtree, rooted at a given node. This function accepts

Callers 5

addIntervalMethod · 0.95
balanceOutMethod · 0.95
leftRotateMethod · 0.95
rightRotateMethod · 0.95
benchmarkMethod · 0.80

Calls

no outgoing calls

Tested by 1

benchmarkMethod · 0.64