The height of a tree is defined as the number of edges on the longest path in the tree. The function shown in the pseudo code below is invoked as height(root) to compute the height of a binary tree rooted at the tree pointer root.The appropriate expressions for the two boxes B1 and B2 are

Comments and Answers (2)

Andy

Andy

What is the correct solution?

Andy

Andy

What is the correct solution?

Avatar

{{SampleComment.userName || "Your Name"}} ~ {{SampleComment.userCity}}

{{SampleComment.commentValue || "Your Answer or Comment goes here...."}}