公众号外链网站怎么做外链群发平台
题目:
代码(首刷自解 day23):
class Solution {
public:int maxDepth(TreeNode* root) {if(root==nullptr) return 0;return max(maxDepth(root->left),maxDepth(root->right))+1;}
};
class Solution {
public:int maxDepth(TreeNode* root) {if(root==nullptr) return 0;return max(maxDepth(root->left),maxDepth(root->right))+1;}
};