Tag: LeetCode: 617 Merge Two Binary Trees

  • LeetCode: 617 Merge Two Binary Trees

    You are given two binary trees root1 and root2. Imagine that when you put one tree over the other, some nodes of the two trees overlap while others do not. You need to merge the two trees into a new binary tree. The merge rule is that if two nodes…