![240](https://cdn2.jianshu.io/assets/default_avatar/5-33d2da32c552b8be9a0548c7a4576607.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
有一天醒來 我第一次注意到鏡子里的人笑起來會有眼袋 你安慰我說奴饮,那是昨日疲憊的痕跡 有一天下午 我因為‘人生海海’一句歌詞,振奮起來 ’我知道潮...
Solution: 此題是search inrotateed array 的變形, 多了 duplicate 的情況, 思路相同,但是必須加入d...
Solution: In a sorted rotated array, half of the elements must be in a s...
Solution1: Dynamic transfer function : dp(cur) = nums[i] + ( dp(prev) > ...
Tag: array, level : easy Solution: maintain two pointers, one iterate th...
Tag: array, level: easy Solution: Using two pointers, use first pointer ...
3 sum 的變形題 Solution1: sort first, then iterate the array, fix one elemen...
solution 1: sort the array, then fix two,using two pointers, one at the ...
Solution: Sort then using two pointers, one at the beginning element, on...