Question | Find Max
Define find_max
, which takes a non-rooted tree t
, and returns the maximum entry in t
. You may assume is_leaf(tree)
is defined for you.
def find_max(t):
"""
>>> t1 = [1, [2, 3], [3, [4, 3]]]
>>> find_max(t1)
4
"""
## YOUR CODE HERE ##