Q100. Same Tree
Input: 1 1
/ \ / \
2 3 2 3
[1,2,3], [1,2,3]
Output: trueInput: 1 1
/ \
2 2
[1,2], [1,null,2]
Output: false分析
C++代码
Last updated