Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
knakul853
Jul 22nd, 2020
197
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
/**
knakul853
*/
class
Solution
{
public
:
int
maxDepth
(
TreeNode
*
root
)
{
if
(
!
root
)
return
0
;
int
l
=
max
(
maxDepth
(
root
-
>
left
)
,maxDepth
(
root
-
>
right
)
)
+
1
;
return
l
;
}
}
;
Add Comment
Please,
Sign In
to add comment
Public Pastes
?Make $200 INSTANTLY [Works Worldwide]? SD
Java | 52 sec ago | 0.15 KB
?Make 1500$ in 1 day [Method]? AZ
Java | 3 min ago | 0.15 KB
show-pagemap , (c) s.kazak
C | 6 min ago | 9.90 KB
????Make $3500 INSTANTLY [Works Worldwide]???...
Java | 6 min ago | 0.15 KB
show-pagemap
C | 7 min ago | 9.88 KB
?FREE Method Leaked? 1Y
Java | 10 min ago | 0.15 KB
?Make 1500$ in 1 day [Method]? MA
Java | 13 min ago | 0.15 KB
2025-06-19T22:34:01.856144
PHP | 15 min ago | 0.59 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!