S
shawn
Does anyone know how to calculate the height of a tree structure? The
height should be for the maximum size branch. My tree is mad up with
nodes that have a getLeft and getRight method. getLeft and getRight
return the reference to the node in that position, or null if there
isnt one there.
height should be for the maximum size branch. My tree is mad up with
nodes that have a getLeft and getRight method. getLeft and getRight
return the reference to the node in that position, or null if there
isnt one there.