Fmars Blog
Inner happiness comes from self-sacrifice
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Enter you comment