You are given two binary trees `root1` and `root2`. Imagine laying one on top of the other: some positions are covered by both trees, some by only one.
Merge them into a new tree. Where both trees have a node, the merged node holds the sum of the two values. Where only one tree has a node, that node is used as is.
Return the merged tree. The merge starts from the roots of both trees.
You are given two binary trees root1 and root2. Imagine laying one on top of the other: some positions are covered by both trees, some by only one.
Merge them into a new tree. Where both trees have a node, the merged node holds the sum of the two values. Where only one tree has a node, that node is used as is.
Return the merged tree. The merge starts from the roots of both trees.