EasY Pythn SOln


#1

def MergeTrees(t1, t2):
if (not t1):
return t2
if (not t2):
return t1
t1.val += t2.val
t1.left = MergeTrees(t1.left, t2.left)
t1.right = MergeTrees(t1.right, t2.right)
return t1