public class Solution {public void Mirror(TreeNode root) {if(root==null){return;}TreeNode temp = root.left;root.left = root.right;root.right = temp;Mirror(root.left);Mirror(root.right);}}
欢迎分享,转载请注明来源:内存溢出
public class Solution {public void Mirror(TreeNode root) {if(root==null){return;}TreeNode temp = root.left;root.left = root.right;root.right = temp;Mirror(root.left);Mirror(root.right);}}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)