Total Accepted: 109175
Total Submissions: 255839
Difficulty: Easy
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
当然我的代码还可以缩短很多,但这样清晰明了
C++:
1 | /** |