Leetcode#110. 平衡二叉樹,C++實現

目錄 1. 題目 2. 方法一 2.1. 代碼 2.2. 結果 1. 題目 2. 方法一 2.1. 代碼 class Solution { bool result=true; public: bool isBalanced(TreeNode* root) { Max_depth(root); return result; } int
相關文章
相關標籤/搜索