hi,
i have been working on binary search trees. i am finding it difficult to find the height of the tree. i am particualry confused with how to find the left height an right height seperateley.
all of the algorithms give psuedocode as comparing left height and right height and return which ever is grater. but how to find the heigts of left subtree and right subtree is my question.
thank you
i have been working on binary search trees. i am finding it difficult to find the height of the tree. i am particualry confused with how to find the left height an right height seperateley.
all of the algorithms give psuedocode as comparing left height and right height and return which ever is grater. but how to find the heigts of left subtree and right subtree is my question.
thank you