沈阳网站建设,长沙市网页设计公司,discuz破解,仿摄影网站题目#xff1a; 代码#xff08;首刷自解 day23#xff09;#xff1a;
class Solution {
public:int maxDepth(TreeNode* root) {if(rootnullptr) return 0;return max(maxDepth(root-left),maxDepth(root-right))1;}
};题目 代码首刷自解 day23
class Solution {
public:int maxDepth(TreeNode* root) {if(rootnullptr) return 0;return max(maxDepth(root-left),maxDepth(root-right))1;}
};