leetcode-1137 - N-th Tribonacci Number

動機 複習fib ...

July 27, 2021 · 1 min · zhengcf

leetcode-518 - Coin Change 2

動機 複習dp ...

July 27, 2021 · 1 min · zhengcf

leetcode-232 - Implement Queue using Stacks

動機 很經典,但沒想過可以用兩個stack ...

July 27, 2021 · 2 min · zhengcf

leetcode-47 - Permutations II

動機 46的follow-up ...

July 27, 2021 · 1 min · zhengcf

leetcode-86 - Partition List

動機 直接往後塞 ...

July 27, 2021 · 1 min · zhengcf

leetcode-81 - Search in Rotated Sorted Array II

動機 這題是33的follow-up 如果多了重複怎麼辦? ...

July 27, 2021 · 2 min · zhengcf

leetcode-110 - Balanced Binary Tree

動機 多回傳值的dfs ...

July 27, 2021 · 1 min · zhengcf

leetcode-643 - Maximum Average Subarray I

動機 大概抓到sliding window的模式了 ...

July 27, 2021 · 1 min · zhengcf

leetcode-187 - Repeated DNA Sequences

動機 複習sliding window ...

July 27, 2021 · 1 min · zhengcf

leetcode-567 - Permutation in String

動機 雖然說是複習sliding window,但學到一個很迷的技巧 ...

July 27, 2021 · 1 min · zhengcf