PTT
Submit
Submit
選擇語言
正體中文
简体中文
PTT
Marginalman
Re: [閒聊] 每日LeetCode
作者:
SecondRun
(雨夜琴聲)
2023-02-16 09:18:25
104. Maximum Depth of Binary Tree
找出一棵二元樹的max depth
C# code
public class Solution {
public int MaxDepth(TreeNode node) {
if (node == null) return 0;
return 1+Math.Max(MaxDepth(node.left),MaxDepth(node.right));
}
}
捏
作者:
a9486l
(a9486l)
2022-02-16 09:18:00
大師
作者:
Rushia
(みけねこ的鼻屎)
2023-02-16 09:21:00
撞車
作者:
SecondRun
(雨夜琴聲)
2023-02-16 09:21:00
笑了
作者:
MurasakiSion
(紫咲シオン)
2023-02-16 09:24:00
大師
作者:
idiont
(supertroller)
2023-02-16 11:23:00
大師
繼續閱讀
Re: [閒聊] 狗群這幾個是誰啊
TNPSCG
Re: [閒聊] 股票
qscxz
Re: [閒聊] D卡鏈鋸豚:BD就是不重要
pchooooome
Re: [閒聊] 狗群這幾個是誰啊
F16V
Re: [閒聊] D卡鏈鋸豚:BD就是不重要
tomuy
Re: [閒聊] 狗群這幾個是誰啊
sole772pk37
Re: [瓦特] 西甕
MurasakiSion
[取暖] 幹你娘肚子痛
mayolane
Re: [閒聊] D卡鏈鋸豚:BD就是不重要
koy784512
[瓦特] 上工前幾張百鬼大小姐
NakaokaLove
Links
booklink
Contact Us: admin [ a t ] ucptt.com