LeetCode基础--二叉树--反转左右子树

题目描述: 反转二叉树的左右子树。web 实现:svg public class Solution { public TreeNode InvertTree(TreeNode root) { if(root == null) { return null; } TreeNode tmp = root.le
相关文章
相关标签/搜索