swift递归检测对称二叉树<pre<codevarisS:BooltruefuncisSymmetric(_root:TreeNode?)>Bool{helper(root,root)returnisS}funchelper(_left:TreeNo