![240](https://cdn2.jianshu.io/assets/default_avatar/10-e691107df16746d4a9f3fe9496fd1848.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
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] 實現(xiàn)一個函數(shù)切黔,檢查二叉樹是否平衡绽诚。(任二子樹高度差不超過一) depth of tree node: # edges from roo...
像是夏日的最后一天 - to do 3.1】用一個數(shù)組實現(xiàn)三個棧 3.2】 How would you design a stack which...
- to do - linked-list-random-node 水塘抽樣是一系列的隨機(jī)算法件甥,其目的在于從包含n個項目的集合S中選取k個樣本藏研,...
Proposal: - background: Social media has been rapidly gaining its impact...