MCPcopy Index your code
hub / github.com/google/mangle / height

Function height

factstore/interval_tree.go:241–246  ·  view source on GitHub ↗

AVL tree helper functions height returns the height of a node.

(node *treeNode)

Source from the content-addressed store, hash-verified

239
240// height returns the height of a node.
241func height(node *treeNode) int {
242 if node == nil {
243 return 0
244 }
245 return node.height
246}
247
248// updateHeight updates the height of a node based on children.
249func updateHeight(node *treeNode) {

Callers 2

updateHeightFunction · 0.85
balanceFactorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected