Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
knakul853
Jul 22nd, 2020
178
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
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 17 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 18 min ago | 0.38 KB
DoTween ImageFade
C# | 38 min ago | 1.27 KB
Horror Clock by TheLoneCatt
Lua | 42 min ago | 2.62 KB
Pastebin.ai - #1 pastebin alternative
PHP | 47 min ago | 0.84 KB
synapse crashes after switching to postgresql
Python | 57 min ago | 1.62 KB
how to pack delta ?
Motorola 68000 HiSoft Dev | 1 hour ago | 17.53 KB
Infinite Test Build
Lua | 1 hour ago | 1.21 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!