Symmetric Tree
思路一: 递归
public boolean isSymmetric(TreeNode left, TreeNode right) {
if (left == null && right == null) return true;
if (left == null || right == null) return false;
return left.val == right.val &&
isSymmetric(left.left, right.right) &&
isSymmetric(left.right, right.left);
}
标签:101,return,&&,right,easy,isSymmetric,null,leetcode,left
From: https://www.cnblogs.com/iyiluo/p/16804864.html