标签:span 路径 div wrap desc int return == treenode
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class Solution { public: int TreeDepth(TreeNode* pRoot) { if(pRoot == NULL) return 0; return max(1+TreeDepth(pRoot->left), 1+TreeDepth(pRoot->right)); } };
标签:span 路径 div wrap desc int return == treenode
原文地址:https://www.cnblogs.com/evidd/p/10630892.html