LeetCode基礎--二叉樹--反轉左右子樹

題目描述: 反轉二叉樹的左右子樹。web 實現:svg public class Solution { public TreeNode InvertTree(TreeNode root) { if(root == null) { return null; } TreeNode tmp = root.le
相關文章
相關標籤/搜索