FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
leetcode-study/maximum-depth-of-binary-tree/PDKhan.cpp at main · DaleStudy/leetcode-study · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
DaleStudy
/
leetcode-study
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
361
Star
155
Code
Issues
75
Pull requests
5
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
leetcode-study
/
maximum-depth-of-binary-tree
/
PDKhan.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (8 loc) · 229 Bytes
Breadcrumbs
leetcode-study
/
maximum-depth-of-binary-tree
/
PDKhan.cpp
Copy path
File metadata and controls
9 lines (8 loc) · 229 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
class
Solution
{
public:
int
maxDepth
(TreeNode* root) {
if
(root ==
nullptr
)
return
0
;
return
1
+
max
(
maxDepth
(root->
left
),
maxDepth
(root->
right
));
}
};
Back
|
FazBrowse Home
|
New Git URL