My Blog List

[Leetcode Solution] Same Tree

Analysis

  • Using recursion
  • If the value of the root node of two trees are same, and the two pair of subtrees are same, then the two tree are the same.

Note

Code


No comments:

Post a Comment

Enter you comment