題目描述: 給一棵二叉樹仲智,找出從根節(jié)點(diǎn)到葉子節(jié)點(diǎn)的所有路徑。 樣例: 代碼實(shí)現(xiàn):

題目描述: 給一棵二叉樹仲智,找出從根節(jié)點(diǎn)到葉子節(jié)點(diǎn)的所有路徑。 樣例: 代碼實(shí)現(xiàn):
題目描述: Given a binary tree, find the subtree with minimum sum. Return the...
題目描述: Given a binary tree, find the subtree with maximum average. Return...
題目描述: 給出一個(gè)可能包含重復(fù)的整數(shù)數(shù)組,和一個(gè)大小為 k 的滑動(dòng)窗口, 從左到右在數(shù)組中滑動(dòng)這個(gè)窗口,找到數(shù)組中每個(gè)窗口內(nèi)的最大值。 樣例:...
最近公共祖先I 描述: 給定一棵二叉樹,找到兩個(gè)節(jié)點(diǎn)的最近公共父節(jié)點(diǎn) (LCA)。最近公共祖先是兩個(gè)節(jié)點(diǎn)的公共的祖先節(jié)點(diǎn)且具有最大深度榛搔。 樣例 ...
題目: Given a singly linked list, determine if it is a palindrome. 代碼實(shí)現(xiàn):
描述 樣例 代碼實(shí)現(xiàn)
描述 Given a string, find the first non-repeating character in it and retu...
描述 設(shè)計(jì)一個(gè)算法,找出只含素因子2嘶卧,3尔觉,5 的第 n 大的數(shù)。 樣例 代碼實(shí)現(xiàn)