Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 397 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 397 Bytes

Good morning! Here's your coding interview problem for today.

This problem was asked by Salesforce.

Write a program to merge two binary trees. Each node in the new tree should hold a value equal to the sum of the values of the corresponding nodes of the input trees.

If only one input tree has a node in a given position, the corresponding node in the new tree should match that input node.