617 Merge Two Binary Trees
617. Merge Two Binary Trees
1. Question
Input:
Tree 1 Tree 2
1 2
/ \ / \
3 2 1 3
/ \ \
5 4 7
Output:
Merged tree:
3
/ \
4 5
/ \ \
5 4 72. Implementation
3. Time & Space Complexity
Last updated