Counting Bits [method1] naive O(n*sizeof(int)) side note num/2 ===> num>...
167] Two Sum II - Input array is sorted
[ 80 questions / 3 ~= 27 a month..ok.. ] 1.29: remove_duplicatesI-III fo...
--- knowledge ---# of leaves = # of nonleaves + 1 - Binary Tree Inord...
9.1] Climbing Stairs LIC dp O(n^2)lenLIS[i] = max (lenLIS[j] + 1), where...
4.1] 實(shí)現(xiàn)一個(gè)函數(shù),檢查二叉樹是否平衡。(任二子樹高度差不超過一) depth of tree node: # edges from roo...
像是夏日的最后一天 - to do 3.1】用一個(gè)數(shù)組實(shí)現(xiàn)三個(gè)棧 3.2】 How would you design a stack which...
- to do - linked-list-random-node 水塘抽樣是一系列的隨機(jī)算法,其目的在于從包含n個(gè)項(xiàng)目的集合S中選取k個(gè)樣本,...
Proposal: - background: Social media has been rapidly gaining its impact...