Computer Science, asked by toshirolkr5964, 1 year ago

Suppose we add this function foo() to the class tree that implements search trees. For a name mytree with a value of type tree, what would mytree.Foo() compute? Def foo(self): if self.Isempty(): return(0) elif self.Isleaf(): return(1) else: return(1 + max(self.Left.Foo(),self.Right.Foo()))

Answers

Answered by bkhallmark
0

i think it would probably be java.

Answered by avilajanani2002
0

Answer:

Length of the longest path from root to leaf node

Similar questions