leetcode-230 - Kth Smallest Element in a BST

動機 不要被BST誤導阿!!! 一直往O(log(n))的方向去想 ...

January 31, 2021 · 1 min · zhengcf

leetcode-123 - Best Time to Buy and Sell Stock III

動機 用算k個的dp就可以解這題,但是想介紹當初沒有用dp的解法 ...

January 31, 2021 · 2 min · zhengcf

leetcode-714 - Best Time to Buy and Sell Stock with Transaction Fee

動機 與309、188一起看效果更佳 ...

January 31, 2021 · 2 min · zhengcf

leetcode-309 - Best Time to Buy and Sell Stock with Cooldown

動機 可以當成188的暖身題 ...

January 31, 2021 · 2 min · zhengcf

leetcode-121 - Best Time to Buy and Sell Stock

動機 經典的stock系列題目的開始 ...

January 31, 2021 · 1 min · zhengcf

leetcode-395 - Longest Substring with At Least K Repeating Characters

動機 搞懂調整sliding window的條件 ...

January 31, 2021 · 2 min · zhengcf

leetcode-779 - K-th Symbol in Grammar

動機 十分有趣的題目 ...

January 31, 2021 · 2 min · zhengcf

leetcode-523 - Continuous Subarray Sum

動機 要與560一起看 ...

January 31, 2021 · 2 min · zhengcf

leetcode-763 - Partition Labels

動機 看到greedy解後恍然大悟 ...

January 31, 2021 · 1 min · zhengcf

leetcode-581 - Shortest Unsorted Continuous Subarray

動機 當初想說只要看到第一個不對的點就可以了,但沒想到的是overlap與根本沒有需要的case…,所以一直出事 [1,2,3,3,3] ...

January 31, 2021 · 2 min · zhengcf