@@ -0,0 +1,470 @@
+%0A%0Aclass TreeNode:%0A    def __init__(self, val):%0A        self.val = val%0A        self.left = None%0A        self.right = None%0A%0A%0Aclass Solution(object):%0A    def is_same_tree(self, p, q):%0A        if p is None or q is None:%0A            if p != q:%0A                return False%0A            return True%0A        if p.val != q.val:%0A            return False%0A        if not self.is_same_tree(p.left, q.left):%0A            return False%0A        return self.is_same_tree(p.right, q.right)%0A

add is same tree check