[58.] prove safety Offer achieve symmetrical binary tree python

Title Description
Please implement a function, a binary tree is used to determine not symmetrical. Note that if a binary image is a binary tree with this same definition as symmetrical.

# -*- coding:utf-8 -*-
# class TreeNode:
#     def __init__(self, x):
#         self.val = x
#         self.left = None
#         self.right = None
class Solution:
    def isSymmetrical(self, pRoot):
        # write code here
Published 116 original articles · won praise 6 · views 6088

Guess you like

Origin blog.csdn.net/weixin_42247922/article/details/104078123