Skip to content

Commit d5e602f

Browse files
committed
Runtime: 4 ms (Top 96.96%) | Memory: 18.9 MB (Top 14.27%)
1 parent e131395 commit d5e602f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 4 ms (Top 96.96%) | Memory: 18.9 MB (Top 14.27%)
12
class Solution {
23
public:
34
int maxDepth(TreeNode* root) {
@@ -6,4 +7,4 @@ class Solution {
67
int right = maxDepth(root->right);
78
return max(left, right) + 1;
89
}
9-
};
10+
};

0 commit comments

Comments
 (0)