public TreeNode mirrorTree(TreeNode root) {
if(root == null){
return null;
}
TreeNode left=mirrorTree(root.left);
TreeNode right=mirrorTree(root.right);
root.left=right;
root.right=left;
return root;
}
标签:right,TreeNode,OFF27,二叉树,镜像,mirrorTree,root,left
From: https://www.cnblogs.com/lwx11111/p/16778818.html