對稱的二叉樹 [LeetCode] Symmetric Tree 遞歸與非遞歸

二叉樹的相關題目的實現一般都是使用遞歸,思路清晰容易理解java public class Solution { boolean isSymmetrical(TreeNode pRoot){ if(pRoot == null) return true; return isSymmetrical(pRoot.left, pRoot.ri
相關文章
相關標籤/搜索